Merging if's
This commit is contained in:
parent
9e53bd78d9
commit
fa57b9de70
4
pdf.js
4
pdf.js
@ -4585,10 +4585,8 @@ var PartialEvaluator = (function partialEvaluator() {
|
|||||||
width: isNum(width) ? width : properties.defaultWidth
|
width: isNum(width) ? width : properties.defaultWidth
|
||||||
};
|
};
|
||||||
|
|
||||||
if (glyph) {
|
if (glyph && (replaceGlyph || !glyphs[glyph]))
|
||||||
if (replaceGlyph || !glyphs[glyph])
|
|
||||||
glyphs[glyph] = map[i];
|
glyphs[glyph] = map[i];
|
||||||
}
|
|
||||||
|
|
||||||
// If there is no file, the character mapping can't be modified
|
// If there is no file, the character mapping can't be modified
|
||||||
// but this is unlikely that there is any standard encoding with
|
// but this is unlikely that there is any standard encoding with
|
||||||
|
Loading…
Reference in New Issue
Block a user