Commit d7ead51f authored by Albert Astals Cid's avatar Albert Astals Cid

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
parent 11f83d58
......@@ -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];
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