]> git.parisson.com Git - pdf.js.git/commitdiff
Fix mediaBox check (regr. of #519)
authornotmasteryet <async.processingjs@yahoo.com>
Sat, 24 Sep 2011 02:29:01 +0000 (21:29 -0500)
committernotmasteryet <async.processingjs@yahoo.com>
Sat, 24 Sep 2011 02:29:01 +0000 (21:29 -0500)
pdf.js

diff --git a/pdf.js b/pdf.js
index 350aeb0859a935bd534e8b82eac487a6ff0ee1ab..f7bde09f1a9e34736769c18b39941f99730eae47 100644 (file)
--- a/pdf.js
+++ b/pdf.js
@@ -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);
     },