Fix mediaBox check (regr. of #519)

This commit is contained in:
notmasteryet 2011-09-23 21:29:01 -05:00
parent 5f83273e44
commit 2ad3a8bd1c

2
pdf.js
View File

@ -3322,7 +3322,7 @@ var Page = (function pagePage() {
get mediaBox() {
var obj = this.inheritPageProp('MediaBox');
// Reset invalid media box to letter size.
if (!IsArray(obj) || obj.length === 4)
if (!IsArray(obj) || obj.length !== 4)
obj = [0, 0, 612, 792];
return shadow(this, 'mediaBox', obj);
},