1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-28 23:28:16 +02:00

Fix strict js wanings.

This commit is contained in:
Kalervo Kujala 2011-10-24 22:52:37 +03:00
parent 4cfcd45e70
commit e72216649a
2 changed files with 20 additions and 13 deletions

View file

@ -2631,7 +2631,8 @@ var Type2CFF = (function type2CFF() {
if (unicode <= 0x1f || (unicode >= 127 && unicode <= 255))
unicode += kCmapGlyphOffset;
var width = isNum(mapping.width) ? mapping.width : defaultWidth;
var width = (mapping.hasOwnProperty('width') && isNum(mapping.width)) ?
mapping.width : defaultWidth;
properties.encoding[code] = {
unicode: unicode,
width: width