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() {
data.annotationType = AnnotationType.LINK; data.annotationType = AnnotationType.LINK;
var action = dict.get('A'); var action = dict.get('A');
if (action) { if (action && isDict(action)) {
var linkType = action.get('S').name; var linkType = action.get('S').name;
if (linkType === 'URI') { if (linkType === 'URI') {
var url = action.get('URI'); var url = action.get('URI');

Loading…
Cancel
Save