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

New commits:
commit d7ead51f00e30d7f660ed5914acc26461beb057d
Author: Albert Astals Cid <aa...@kde.org>
Date:   Wed Aug 19 18:34:44 2020 +0200

    Pretend Opt in Choice forms is inheritable
    
    The spec doesn't say it is, but Adobe Reader acts like it is, so emulate
    its bug (or it's a bug in the spec)
    
    Fixes KDE bug #425520

diff --git a/poppler/Form.cc b/poppler/Form.cc
index ecdf382b..b7ffc196 100644
--- a/poppler/Form.cc
+++ b/poppler/Form.cc
@@ -1360,7 +1360,7 @@ FormFieldChoice::FormFieldChoice(PDFDoc *docA, Object 
&&aobj, const Ref refA, Fo
     if (obj1.isInt())
         topIdx = obj1.getInt();
 
-    obj1 = dict->lookup("Opt");
+    obj1 = Form::fieldLookup(dict, "Opt");
     if (obj1.isArray()) {
         numChoices = obj1.arrayGetLength();
         choices = new ChoiceOpt[numChoices];
_______________________________________________
poppler mailing list
poppler@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/poppler

Reply via email to