[poppler] poppler/Lexer.cc
Carlos Garcia Campos
carlosgc at kemper.freedesktop.org
Sun Apr 4 07:09:55 PDT 2010
poppler/Lexer.cc | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
New commits:
commit 8c6aefb8aa8929b9c47791d3062ed3ac8512626f
Author: Carlos Garcia Campos <carlosgc at gnome.org>
Date: Sun Apr 4 16:08:12 2010 +0200
[lexer] Correctly parse numbers with '+' sign
See GNOME Bug: https://bugzilla.gnome.org/show_bug.cgi?id=614549
diff --git a/poppler/Lexer.cc b/poppler/Lexer.cc
index 5962185..60bb09e 100644
--- a/poppler/Lexer.cc
+++ b/poppler/Lexer.cc
@@ -13,6 +13,7 @@
// All changes made under the Poppler project to this file are licensed
// under GPL version 2 or later
//
+// Copyright (C) 2010 Carlos Garcia Campos <carlosgc at gnome.org>
// Copyright (C) 2006-2009 Albert Astals Cid <aacid at kde.org>
// Copyright (C) 2006 Krzysztof Kowalczyk <kkowalczyk at gmail.com>
//
@@ -182,7 +183,7 @@ Object *Lexer::getObj(Object *obj, int objNum) {
// number
case '0': case '1': case '2': case '3': case '4':
case '5': case '6': case '7': case '8': case '9':
- case '-': case '.':
+ case '+': case '-': case '.':
overflownInteger = gFalse;
neg = gFalse;
xi = 0;
@@ -190,7 +191,7 @@ Object *Lexer::getObj(Object *obj, int objNum) {
neg = gTrue;
} else if (c == '.') {
goto doReal;
- } else {
+ } else if (c != '+') {
xi = c - '0';
}
while (1) {
More information about the poppler
mailing list