From: Artur Adib Date: Mon, 30 Jan 2012 14:24:49 +0000 (-0500) Subject: addressing reviewer comments, bug fix X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=30a01c5da6eeef910228c234619a26fdaf99f524;p=pdf.js.git addressing reviewer comments, bug fix --- diff --git a/src/evaluator.js b/src/evaluator.js index 1c277e0..e1e064f 100644 --- a/src/evaluator.js +++ b/src/evaluator.js @@ -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 diff --git a/web/viewer.js b/web/viewer.js index 9f8b772..e0ab1cc 100644 --- a/web/viewer.js +++ b/web/viewer.js @@ -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; } }