[poppler] Branch 'poppler-0.20' - poppler/Form.cc

Carlos Garcia Campos carlosgc at kemper.freedesktop.org
Sat Nov 3 02:01:54 PDT 2012


 poppler/Form.cc |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit d254174e08146115ad04ac1f1bf82bb26e56c684
Author: Fabio D'Urso <fabiodurso at hotmail.it>
Date:   Wed Oct 31 16:57:56 2012 +0100

    FormFieldChoice::updateSelection: Fixed wrong loop condition

diff --git a/poppler/Form.cc b/poppler/Form.cc
index a2be980..0940932 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;


More information about the poppler mailing list