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

Carlos Garcia Campos carlosgc at kemper.freedesktop.org
Fri Oct 19 03:22:58 PDT 2007


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

New commits:
commit 6ba9a2d753d66bba351d03564b894a060d126ac5
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 c145ae7..49e6038 100644
--- a/poppler/Form.cc
+++ b/poppler/Form.cc
@@ -690,7 +690,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