[poppler] poppler/Annot.cc poppler/Annot.h

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Sun Jun 9 18:42:30 UTC 2019


 poppler/Annot.cc |    3 +--
 poppler/Annot.h  |    1 -
 2 files changed, 1 insertion(+), 3 deletions(-)

New commits:
commit 58994c211d525705136d045d8b9b8839197481f4
Author: Albert Astals Cid <aacid at kde.org>
Date:   Sun Jun 9 20:37:21 2019 +0200

    Remove AnnotAppearance::xref
    
    We can just get it from the doc when needed

diff --git a/poppler/Annot.cc b/poppler/Annot.cc
index 8ff40d6a..79bf1c0e 100644
--- a/poppler/Annot.cc
+++ b/poppler/Annot.cc
@@ -881,7 +881,6 @@ AnnotIconFit::AnnotIconFit(Dict* dict) {
 AnnotAppearance::AnnotAppearance(PDFDoc *docA, Object *dict) {
   assert(dict->isDict());
   doc = docA;
-  xref = docA->getXRef();
   appearDict = dict->copy();
 }
 
@@ -993,7 +992,7 @@ void AnnotAppearance::removeStream(Ref refToStream) {
   }
 
   // TODO: stream resources (e.g. font), AP name tree
-  xref->removeIndirectObject(refToStream);
+  doc->getXRef()->removeIndirectObject(refToStream);
 }
 
 // Removes stream if obj is a Ref, or removes pointed streams if obj is a Dict
diff --git a/poppler/Annot.h b/poppler/Annot.h
index 3a937944..3740b31a 100644
--- a/poppler/Annot.h
+++ b/poppler/Annot.h
@@ -453,7 +453,6 @@ private:
 
 protected:
   PDFDoc *doc;
-  XRef *xref;                   // the xref table for this PDF file
   Object appearDict;            // Annotation's AP
 };
 


More information about the poppler mailing list