[poppler] Branch 'refs/remotes/origin/master' - poppler/Form.cc

Carlos Garcia Campos carlosgc at kemper.freedesktop.org
Tue Oct 16 06:26:47 PDT 2007


 poppler/Form.cc |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit a4d25f79dfc1a7e4998e2e113ef92312bd4af553
Author: Carlos Garcia Campos <carlosgc at gnome.org>
Date:   Tue Oct 16 15:24:08 2007 +0200

    Detect form fields at any depth level
    
    We were ignoring non root form fields that contain only a kids dictionary.
    See evince bug: http://bugzilla.gnome.org/show_bug.cgi?id=486957

diff --git a/poppler/Form.cc b/poppler/Form.cc
index 022bdb1..334e45c 100644
--- a/poppler/Form.cc
+++ b/poppler/Form.cc
@@ -685,7 +685,7 @@ FormField::FormField(XRef* xrefA, Object *aobj, const Ref& aref, Form* aform, Fo
 	  _createWidget(&obj2, childRef.getRef());
 	}
         obj4.free();
-      } else if(obj2.dictLookup("FT", &obj3)->isName()) {
+      } else if(obj2.dictLookup("FT", &obj3)->isName() || obj2.dictLookup("Kids", &obj3)->isArray()) {
         if(terminal) error(-1, "Field can't have both Widget AND Field as kids\n");
 
         numChildren++;


More information about the poppler mailing list