git.asbjorn.biz
/
swftools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
NameToUnicode references are now relative to the config dir path, too
[swftools.git]
/
pdf2swf
/
xpdf
/
Lexer.cc
diff --git
a/pdf2swf/xpdf/Lexer.cc
b/pdf2swf/xpdf/Lexer.cc
index
1fa166f
..
9f0c3ca
100644
(file)
--- a/
pdf2swf/xpdf/Lexer.cc
+++ b/
pdf2swf/xpdf/Lexer.cc
@@
-171,6
+171,13
@@
Object *Lexer::getObj(Object *obj) {
scale = 0.1;
while (1) {
c = lookChar();
scale = 0.1;
while (1) {
c = lookChar();
+ if (c == '-') {
+ // ignore minus signs in the middle of numbers to match
+ // Adobe's behavior
+ error(getPos(), "Badly formatted number");
+ getChar();
+ continue;
+ }
if (!isdigit(c)) {
break;
}
if (!isdigit(c)) {
break;
}
@@
-472,3
+479,7
@@
void Lexer::skipToNextLine() {
}
}
}
}
}
}
+
+GBool Lexer::isSpace(int c) {
+ return c >= 0 && c <= 0xff && specialChars[c] == 1;
+}