Commit 359fc194 authored by Albert Astals Cid's avatar Albert Astals Cid

Fix crash on files with forms but no AcroForm

parent 6062e0ef
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment