poppler/Form.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
New commits: commit 841f3bbca37015ec2c58d7b85a73cef5681294f8 Author: Albert Astals Cid <[email protected]> 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 <[email protected]> -// Copyright 2007-2010 Albert Astals Cid <[email protected]> +// Copyright 2007-2011 Albert Astals Cid <[email protected]> // Copyright 2007-2008, 2011 Carlos Garcia Campos <[email protected]> // Copyright 2007 Adrian Johnson <[email protected]> // Copyright 2007 Iñigo MartÃnez <[email protected]> @@ -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; }
_______________________________________________ poppler mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/poppler
