From 46ba8d10b05bc22c24619fee822650d3eab1369e Mon Sep 17 00:00:00 2001
From: Jonas Jenwald <jonas.jenwald@gmail.com>
Date: Mon, 20 Jan 2014 16:08:28 +0100
Subject: [PATCH] Only check for line dash pattern when annotation has a
 visible border (bug 957034 followup)

---
 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 ea504e8aa..5d436e7e7 100644
--- a/src/shared/annotation.js
+++ b/src/shared/annotation.js
@@ -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