Commit 102553e2 authored by Fabio D'Urso's avatar Fabio D'Urso Committed by Carlos Garcia Campos
Browse files

FormFieldChoice::updateSelection: Fixed wrong loop condition

parent d7522ea1
......@@ -1189,7 +1189,7 @@ void FormFieldChoice::updateSelection() {
if (numSelected == 0) {
obj1.initString(new GooString(""));
} else if (numSelected == 1) {
for (int i = 0; numChoices; i++) {
for (int i = 0; i < numChoices; i++) {
if (choices[i].optionName && choices[i].selected) {
obj1.initString(choices[i].optionName->copy());
break;
......
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