From 30a01c5da6eeef910228c234619a26fdaf99f524 Mon Sep 17 00:00:00 2001 From: Artur Adib Date: Mon, 30 Jan 2012 09:24:49 -0500 Subject: [PATCH] addressing reviewer comments, bug fix --- src/evaluator.js | 4 ++-- web/viewer.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/evaluator.js b/src/evaluator.js index 1c277e027..e1e064f07 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 9f8b772ab..e0ab1cc90 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; } }