[poppler] poppler/XRef.cc

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Mon Mar 21 14:42:34 UTC 2022


 poppler/XRef.cc |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

New commits:
commit c73a83c33ff0152de030120ca66e10a9b3941bcf
Author: Albert Astals Cid <aacid at kde.org>
Date:   Fri Mar 18 22:31:17 2022 +0100

    Trigger xref rebuild properly
    
    Make DummyXRefEntry have the same internals as a non intialized entry,
    specially the object type
    
    Fixes #1231

diff --git a/poppler/XRef.cc b/poppler/XRef.cc
index df78cf68..e95c0450 100644
--- a/poppler/XRef.cc
+++ b/poppler/XRef.cc
@@ -1697,10 +1697,11 @@ struct DummyXRefEntry : XRefEntry
 {
     DummyXRefEntry()
     {
-        offset = 0;
-        gen = -1;
+        offset = -1;
+        gen = 0;
         type = xrefEntryNone;
         flags = 0;
+        obj = Object(objNull);
     }
 };
 


More information about the poppler mailing list