[Pkg-javascript-commits] [pdf.js] 46/157: Do not draw a border if neither a Border nor a BS entry is present

David Prévot taffit at moszumanska.debian.org
Tue Aug 11 06:46:33 UTC 2015


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

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

commit 3a6eed6248d5d4c985b3315e920401c1ccca90cb
Author: Tim van der Meij <timvandermeij at gmail.com>
Date:   Mon Jul 6 14:48:59 2015 +0200

    Do not draw a border if neither a Border nor a BS entry is present
    
    Fixes #6179.
---
 src/core/annotation.js | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/src/core/annotation.js b/src/core/annotation.js
index 6a4c610..9e1d33e 100644
--- a/src/core/annotation.js
+++ b/src/core/annotation.js
@@ -144,6 +144,13 @@ var Annotation = (function AnnotationClosure() {
             this.borderStyle.setDashArray(array[3]);
           }
         }
+      } else {
+        // There are no border entries in the dictionary. According to the
+        // specification, we should draw a solid border of width 1 in that
+        // case, but Adobe Reader did not implement that part of the
+        // specification and instead draws no border at all, so we do the same.
+        // See also https://github.com/mozilla/pdf.js/issues/6179.
+        this.borderStyle.setWidth(0);
       }
     },
 

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