]> git.parisson.com Git - pdf.js.git/commitdiff
Merging if's
authornotmasteryet <async.processingjs@yahoo.com>
Sun, 2 Oct 2011 02:39:32 +0000 (21:39 -0500)
committernotmasteryet <async.processingjs@yahoo.com>
Sun, 2 Oct 2011 02:39:32 +0000 (21:39 -0500)
pdf.js

diff --git a/pdf.js b/pdf.js
index 3eb1f5f96055134929cea244b7dd4928ae4dedd9..ae8984907d6fca2f03b75b8800cfbb03ce36743d 100644 (file)
--- a/pdf.js
+++ b/pdf.js
@@ -4585,10 +4585,8 @@ var PartialEvaluator = (function partialEvaluator() {
           width: isNum(width) ? width : properties.defaultWidth
         };
 
-        if (glyph) {
-          if (replaceGlyph || !glyphs[glyph])
+        if (glyph && (replaceGlyph || !glyphs[glyph]))
             glyphs[glyph] = map[i];
-        }
 
         // If there is no file, the character mapping can't be modified
         // but this is unlikely that there is any standard encoding with