diff options
author | Fabio D'Urso <fabiodurso@hotmail.it> | 2012-10-31 16:57:56 +0100 |
---|---|---|
committer | Carlos Garcia Campos <carlosgc@gnome.org> | 2012-11-03 10:01:44 +0100 |
commit | d254174e08146115ad04ac1f1bf82bb26e56c684 (patch) | |
tree | c3e52508dd35425862d436c4962dcbb820a1863b | |
parent | 46fb3653c7ae44c34d12d799df8f70d649eaa995 (diff) |
FormFieldChoice::updateSelection: Fixed wrong loop conditionpoppler-0.20
-rw-r--r-- | poppler/Form.cc | 2 |
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; |