diff options
author | Andreas L. Delmelle <adelmelle@apache.org> | 2011-04-03 09:44:28 +0000 |
---|---|---|
committer | Andreas L. Delmelle <adelmelle@apache.org> | 2011-04-03 09:44:28 +0000 |
commit | 3b87eee32c75836ffdfce6e7f6e8863ccd76b0f4 (patch) | |
tree | 07ea8a9525c80ddf0d0b62b1251d8c4230fc48ce /src | |
parent | 2cab35675db358ba46c1845f810b50ec1942812b (diff) | |
download | xmlgraphics-fop-3b87eee32c75836ffdfce6e7f6e8863ccd76b0f4.tar.gz xmlgraphics-fop-3b87eee32c75836ffdfce6e7f6e8863ccd76b0f4.zip |
Bugzilla 50987: Fixed an issue where a link was added to the parent tree instead of the related structure element.
Thanks to Martin Koegler.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1088234 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src')
-rw-r--r-- | src/java/org/apache/fop/render/pdf/PDFLogicalStructureHandler.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/java/org/apache/fop/render/pdf/PDFLogicalStructureHandler.java b/src/java/org/apache/fop/render/pdf/PDFLogicalStructureHandler.java index ba9584597..1b28bc9e2 100644 --- a/src/java/org/apache/fop/render/pdf/PDFLogicalStructureHandler.java +++ b/src/java/org/apache/fop/render/pdf/PDFLogicalStructureHandler.java @@ -291,12 +291,12 @@ class PDFLogicalStructureHandler { void addLinkContentItem(PDFLink link, String structurePointer) { int structParent = getNextParentTreeKey(); link.setStructParent(structParent); - parentTree.getNums().put(structParent, link); PDFDictionary contentItem = new PDFDictionary(); contentItem.put("Type", OBJR); contentItem.put("Pg", this.currentPage); contentItem.put("Obj", link); PDFStructElem parent = (PDFStructElem) structTreeMap.get(structurePointer); + parentTree.getNums().put(structParent, link); parent.addKid(contentItem); } |