From 688cea0758b6ee8ba51abbe607900079783c9fe8 Mon Sep 17 00:00:00 2001 From: Jonas Date: Sun, 4 Aug 2013 23:41:52 +0200 Subject: [PATCH] Prevent link borders from being drawn if their width is undefined --- src/annotation.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/annotation.js b/src/annotation.js index 6f5ae28c7..fd7ad4872 100644 --- a/src/annotation.js +++ b/src/annotation.js @@ -96,7 +96,7 @@ var Annotation = (function AnnotationClosure() { data.borderWidth = borderStyle.has('W') ? borderStyle.get('W') : 1; } else { var borderArray = dict.get('Border') || [0, 0, 1]; - data.borderWidth = borderArray[2]; + data.borderWidth = borderArray[2] || 0; } this.appearance = getDefaultAppearance(dict);