poppler/Annot.cc |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit 359fc19414a525b59793fcd62adb6c735b6c65a6
Author: Albert Astals Cid <[EMAIL PROTECTED]>
Date:   Fri Sep 5 16:17:24 2008 +0200

    Fix crash on files with forms but no AcroForm

diff --git a/poppler/Annot.cc b/poppler/Annot.cc
index e17e722..28389cc 100644
--- a/poppler/Annot.cc
+++ b/poppler/Annot.cc
@@ -1732,7 +1732,8 @@ void AnnotWidget::initialize(XRef *xrefA, Catalog 
*catalog, Dict *dict) {
   Object obj1;
 
   form = catalog->getForm ();
-  widget = form->findWidgetByRef (ref);
+  if (form) widget = form->findWidgetByRef (ref);
+  else widget = NULL;
 
   // check if field apperances need to be regenerated
   // Only text or choice fields needs to have appearance regenerated
_______________________________________________
poppler mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/poppler

Reply via email to