Browse Source

addressing reviewer comments, bug fix

Artur Adib 13 years ago
parent
commit
30a01c5da6
  1. 4
      src/evaluator.js
  2. 2
      web/viewer.js

4
src/evaluator.js

@ -783,8 +783,8 @@ var PartialEvaluator = (function PartialEvaluatorClosure() { @@ -783,8 +783,8 @@ var PartialEvaluator = (function PartialEvaluatorClosure() {
dict: baseDict,
properties: properties
};
} // if (type.name == 'Type3')
} // if (!descriptor)
}
}
// According to the spec if 'FontDescriptor' is declared, 'FirstChar',
// 'LastChar' and 'Widths' should exist too, but some PDF encoders seem

2
web/viewer.js

@ -358,7 +358,7 @@ var PDFView = { @@ -358,7 +358,7 @@ var PDFView = {
} else {
if (moreInfo.filename)
errorMoreInfo.value += '\n' + 'File: ' + moreInfo.filename;
if (moreInfo.filename)
if (moreInfo.lineNumber)
errorMoreInfo.value += '\n' + 'Line: ' + moreInfo.lineNumber;
}
}

Loading…
Cancel
Save