1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-22 16:18:08 +02:00

Merge pull request #4164 from Snuffleupagus/bug-957034-followup

Only check for line dash pattern when annotation has a visible border (bug 957034 followup)
This commit is contained in:
Yury Delendik 2014-01-22 08:27:47 -08:00
commit 5a6862decc

View file

@ -101,7 +101,7 @@ var Annotation = (function AnnotationClosure() {
// TODO: implement proper support for annotations with line dash patterns.
var dashArray = borderArray[3];
if (dashArray && isArray(dashArray)) {
if (data.borderWidth > 0 && dashArray && isArray(dashArray)) {
var dashArrayLength = dashArray.length;
if (dashArrayLength > 0) {
// According to the PDF specification: the elements in a dashArray