Author: adelmelle
Date: Sun Apr 3 09:44:28 2011
New Revision: 1088234
URL: http://svn.apache.org/viewvc?rev=1088234&view=rev
Log:
Bugzilla 50987: Fixed an issue where a link was added to the parent tree
instead of the related structure element.
Thanks to Matthias Reischenbacher.
Modified:
xmlgraphics/fop/trunk/src/java/org/apache/fop/render/pdf/PDFLogicalStructureHandler.java
Modified:
xmlgraphics/fop/trunk/src/java/org/apache/fop/render/pdf/PDFLogicalStructureHandler.java
URL:
http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/java/org/apache/fop/render/pdf/PDFLogicalStructureHandler.java?rev=1088234&r1=1088233&r2=1088234&view=diff
==============================================================================
---
xmlgraphics/fop/trunk/src/java/org/apache/fop/render/pdf/PDFLogicalStructureHandler.java
(original)
+++
xmlgraphics/fop/trunk/src/java/org/apache/fop/render/pdf/PDFLogicalStructureHandler.java
Sun Apr 3 09:44:28 2011
@@ -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);
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]