mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-22 16:18:08 +02:00
Merge pull request #3539 from Snuffleupagus/issue-3538
Prevent link borders from being drawn if their width is undefined
This commit is contained in:
commit
b946762e6f
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue