summaryrefslogtreecommitdiff
path: root/poppler/Form.cc
diff options
context:
space:
mode:
Diffstat (limited to 'poppler/Form.cc')
-rw-r--r--poppler/Form.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/poppler/Form.cc b/poppler/Form.cc
index a2be980c..09409322 100644
--- a/poppler/Form.cc
+++ b/poppler/Form.cc
@@ -1198,7 +1198,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;