[poppler] Branch 'poppler-0.8' - poppler/Annot.cc

Albert Astals Cid aacid at kemper.freedesktop.org
Fri Sep 5 07:19:27 PDT 2008


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

New commits:
commit 359fc19414a525b59793fcd62adb6c735b6c65a6
Author: Albert Astals Cid <aacid at kde.org>
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


More information about the poppler mailing list