[poppler] poppler/Form.cc

Albert Astals Cid aacid at kemper.freedesktop.org
Thu Mar 10 15:27:13 PST 2011


 poppler/Form.cc |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 841f3bbca37015ec2c58d7b85a73cef5681294f8
Author: Albert Astals Cid <aacid at kde.org>
Date:   Thu Mar 10 23:30:51 2011 +0000

    Do not infinite loop

diff --git a/poppler/Form.cc b/poppler/Form.cc
index d553436..0b9ce25 100644
--- a/poppler/Form.cc
+++ b/poppler/Form.cc
@@ -5,7 +5,7 @@
 // This file is licensed under the GPLv2 or later
 //
 // Copyright 2006-2008 Julien Rebetez <julienr at svn.gnome.org>
-// Copyright 2007-2010 Albert Astals Cid <aacid at kde.org>
+// Copyright 2007-2011 Albert Astals Cid <aacid at kde.org>
 // Copyright 2007-2008, 2011 Carlos Garcia Campos <carlosgc at gnome.org>
 // Copyright 2007 Adrian Johnson <ajohnson at redneon.com>
 // Copyright 2007 Iñigo Martínez <inigomartinez at gmail.com>
@@ -1119,7 +1119,7 @@ GooString *FormFieldChoice::getSelectedChoice() {
   if (edit && editedChoice)
     return editedChoice;
 
-  for (int i = 0; numChoices; i++) {
+  for (int i = 0; i < numChoices; i++) {
     if (choices[i].optionName && choices[i].selected)
       return choices[i].optionName;
   }


More information about the poppler mailing list