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

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


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

New commits:
commit 65a2555607e03c94d77ae9ebdb34ab6d4f8844b6
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 7d32ae0..8a242c4 100644
--- a/poppler/Form.cc
+++ b/poppler/Form.cc
@@ -1125,7 +1125,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