Browse Source

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

Jonas Jenwald 11 years ago
parent
commit
46ba8d10b0
  1. 2
      src/shared/annotation.js

2
src/shared/annotation.js

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

Loading…
Cancel
Save