[Pkg-javascript-commits] [pdf.js] 112/141: Makes PDF files load when xrefEntry is undefined

David Prévot taffit at moszumanska.debian.org
Sat Apr 19 22:40:36 UTC 2014


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository pdf.js.

commit dd3df20a88a6124969ad991f528b359e7ca14fb2
Author: Tim van der Meij <timvandermeij at gmail.com>
Date:   Sat Apr 12 12:05:12 2014 +0200

    Makes PDF files load when xrefEntry is undefined
---
 src/core/obj.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/core/obj.js b/src/core/obj.js
index bf88bf2..6a0a017 100644
--- a/src/core/obj.js
+++ b/src/core/obj.js
@@ -1100,7 +1100,7 @@ var XRef = (function XRefClosure() {
 
     getEntry: function XRef_getEntry(i) {
       var xrefEntry = this.entries[i];
-      if (xrefEntry !== null && !xrefEntry.free && xrefEntry.offset) {
+      if (xrefEntry && !xrefEntry.free && xrefEntry.offset) {
         return xrefEntry;
       }
       return null;

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/pdf.js.git



More information about the Pkg-javascript-commits mailing list