commit | 359fc19414a525b59793fcd62adb6c735b6c65a6 | [log] [tgz] |
---|---|---|
author | Albert Astals Cid <aacid@kde.org> | Fri Sep 05 16:17:24 2008 +0200 |
committer | Albert Astals Cid <aacid@kde.org> | Fri Sep 05 16:17:24 2008 +0200 |
tree | 918e1a38c6834953ddcfaac8a9c01ed0280745e6 | |
parent | 6062e0efed473541d5ac8c94a4e166e5aaa2544a [diff] |
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 @@ 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