[Pkg-javascript-commits] [pdf.js] 08/141: Workaround for missing 'Rect' entry in annotation dictionaries (issue 4537)

David Prévot taffit at moszumanska.debian.org
Sat Apr 19 22:40:24 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 772df5e0cb5ec110acc6e61fcd676a9576fc028f
Author: Jonas Jenwald <jonas.jenwald at gmail.com>
Date:   Mon Mar 31 12:07:54 2014 +0200

    Workaround for missing 'Rect' entry in annotation dictionaries (issue 4537)
---
 src/shared/annotation.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/shared/annotation.js b/src/shared/annotation.js
index 4d34edf..75e3f34 100644
--- a/src/shared/annotation.js
+++ b/src/shared/annotation.js
@@ -80,7 +80,7 @@ var Annotation = (function AnnotationClosure() {
     var data = this.data = {};
 
     data.subtype = dict.get('Subtype').name;
-    var rect = dict.get('Rect');
+    var rect = dict.get('Rect') || [0, 0, 0, 0];
     data.rect = Util.normalizeRect(rect);
     data.annotationFlags = dict.get('F');
 

-- 
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