Commit ddcd5dc0 authored by Fabio D'Urso's avatar Fabio D'Urso Committed by Albert Astals Cid
Browse files

FormFieldChoice ctor: Added support to recognize user strings as /V value

parent 1302bf52
......@@ -1165,6 +1165,11 @@ FormFieldChoice::FormFieldChoice(PDFDoc *docA, Object *aobj, const Ref& ref, For
break; // We've determined that this option is selected. No need to keep on scanning
// Set custom value if /V doesn't refer to any predefined option and the field is user-editable
if (!optionFound && edit) {
editedChoice = obj1.getString()->copy();
} else if (obj1.isArray()) {
for (int i = 0; i < numChoices; i++) {
for (int j = 0; j < obj1.arrayGetLength(); j++) {
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