1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-26 10:08:06 +02:00

Merge pull request #2058 from Pimm/master

Small fixes for normal and potential post-compilation bugs
This commit is contained in:
Yury Delendik 2012-09-20 11:36:55 -07:00
commit 75e928c102
9 changed files with 53 additions and 29 deletions

View file

@ -3174,8 +3174,9 @@ var Font = (function FontClosure() {
var styleSheet = styleElement.sheet;
styleSheet.insertRule(rule, styleSheet.cssRules.length);
if (PDFJS.pdfBug && FontInspector.enabled)
FontInspector.fontAdded(this, url);
if (PDFJS.pdfBug && 'FontInspector' in globalScope &&
globalScope['FontInspector'].enabled)
globalScope['FontInspector'].fontAdded(this, url);
return rule;
},
@ -4704,7 +4705,7 @@ var CFFParser = (function CFFParserClosure() {
var data = charstring;
var length = data.length;
for (var j = 0; j <= length; j) {
for (var j = 0; j <= length;) {
var value = data[j++];
if (value == 12 && data[j++] == 0) {
data[j - 2] = 139;