Only check for line dash pattern when annotation has a visible border (bug 957034 followup)

This commit is contained in:
Jonas Jenwald 2014-01-20 16:08:28 +01:00
parent 2c34807fa3
commit 46ba8d10b0

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