poppler/Form.cc |    4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

New commits:
commit e2ccb1cdf7702a2c014e7aaeeeb8d5fc4fcf4d18
Author: Albert Astals Cid <[email protected]>
Date:   Fri Mar 29 12:43:39 2019 +0100

    FormField: don't assign ref to 0, 0 then to just assign it to aref

diff --git a/poppler/Form.cc b/poppler/Form.cc
index 4ae176d9..3673d657 100644
--- a/poppler/Form.cc
+++ b/poppler/Form.cc
@@ -615,7 +615,7 @@ FormField::FormField(PDFDoc *docA, Object &&aobj, const Ref 
aref, FormField *par
   xref = doc->getXRef();
   obj = std::move(aobj);
   Dict* dict = obj.getDict();
-  ref.num = ref.gen = 0;
+  ref = aref;
   type = ty;
   parent = parentA;
   numChildren = 0;
@@ -628,8 +628,6 @@ FormField::FormField(PDFDoc *docA, Object &&aobj, const Ref 
aref, FormField *par
   quadding = quaddingLeftJustified;
   hasQuadding = false;
 
-  ref = aref;
-
   //childs
   Object obj1 = dict->lookup("Kids");
   if (obj1.isArray()) {
_______________________________________________
poppler mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/poppler

Reply via email to