]> git.parisson.com Git - pdf.js.git/commitdiff
addressing reviewer comments, bug fix
authorArtur Adib <arturadib@gmail.com>
Mon, 30 Jan 2012 14:24:49 +0000 (09:24 -0500)
committerArtur Adib <arturadib@gmail.com>
Mon, 30 Jan 2012 14:24:49 +0000 (09:24 -0500)
src/evaluator.js
web/viewer.js

index 1c277e0276fe9d1977e4735a07059069aaeef9f7..e1e064f07bb35e9e55a6bd2d4209bd7362366afc 100644 (file)
@@ -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
index 9f8b772abcf19326479d4e18e3250b79c7059713..e0ab1cc90ac1978f3813922dc6353596d44d4902 100644 (file)
@@ -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;
       }
     }