fix bug in string obj handling

This commit is contained in:
Andreas Gal 2011-05-11 17:17:47 -07:00
parent 52d8555c17
commit 6a4b0e8058

6
pdf.js
View File

@ -1144,11 +1144,11 @@ var Lexer = (function() {
error("Invalid floating point number"); error("Invalid floating point number");
return value; return value;
}, },
getString: function(ch) { getString: function() {
var n = 0; var n = 0;
var numParen = 1; var numParen = 1;
var done = false; var done = false;
var str = ch; var str = "";
var stream = this.stream; var stream = this.stream;
do { do {
switch (ch = stream.getChar()) { switch (ch = stream.getChar()) {
@ -1302,7 +1302,7 @@ var Lexer = (function() {
case '+': case '-': case '.': case '+': case '-': case '.':
return this.getNumber(ch); return this.getNumber(ch);
case '(': case '(':
return this.getString(ch); return this.getString();
case '/': case '/':
return this.getName(ch); return this.getName(ch);
// array punctuation // array punctuation