Skip to content

Commit 7fe5283

Browse files
committed
Fix getStructureDestinationObject for GFPDLinkAnnot
1 parent 70c367b commit 7fe5283

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

validation-model/src/main/java/org/verapdf/gf/model/impl/pd/annotations/GFPDLinkAnnot.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ private COSObject getStructureDestinationObject() {
125125
if (simpleCOSObject.knownKey(ASAtom.A)) {
126126
PDAction action = ((PDAnnotation) simplePDObject).getA();
127127
if (ASAtom.GO_TO.equals(action.getSubtype())) {
128-
destination = action.getDestination();
128+
destination = action.knownKey(ASAtom.SD) ? action.getStructureDestination() : action.getDestination();
129129
}
130130
} else if (simpleCOSObject.knownKey(ASAtom.DEST)) {
131131
destination = ((PDAnnotation) simplePDObject).getDestination();

0 commit comments

Comments
 (0)