[poppler] poppler/Form.cc

Carlos Garcia Campos carlosgc at kemper.freedesktop.org
Sun Oct 14 02:08:43 PDT 2012


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

New commits:
commit 710bb3383306a9aa6debbfe1364029ee12a15576
Author: Fabio D'Urso <fabiodurso at hotmail.it>
Date:   Fri Oct 12 23:54:57 2012 +0200

    FormFieldChoice ctor: Fixed wrong index variable
    
    It caused a crash if multiple items are initially selected.

diff --git a/poppler/Form.cc b/poppler/Form.cc
index 309b065..76ab8c1 100644
--- a/poppler/Form.cc
+++ b/poppler/Form.cc
@@ -1130,7 +1130,7 @@ FormFieldChoice::FormFieldChoice(PDFDoc *docA, Object *aobj, const Ref& ref, For
       for (int j = 0; j < obj1.arrayGetLength(); j++) {
         Object obj2;
 
-        obj1.arrayGet(i, &obj2);
+        obj1.arrayGet(j, &obj2);
         if (choices[i].optionName->cmp(obj2.getString()) == 0) {
           choices[i].selected = true;
           obj2.free();


More information about the poppler mailing list