Browse Source

Merge pull request #5684 from timvandermeij/link-annotation-bug

Make sure that an A entry in an annotation dictionary is also a dictionary itself
Jonas Jenwald 10 years ago
parent
commit
294c4a86af
  1. 2
      src/core/annotation.js

2
src/core/annotation.js

@ -485,7 +485,7 @@ var LinkAnnotation = (function LinkAnnotationClosure() { @@ -485,7 +485,7 @@ var LinkAnnotation = (function LinkAnnotationClosure() {
data.annotationType = AnnotationType.LINK;
var action = dict.get('A');
if (action) {
if (action && isDict(action)) {
var linkType = action.get('S').name;
if (linkType === 'URI') {
var url = action.get('URI');

Loading…
Cancel
Save