Ver código fonte

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
tags/fop-1_1rc1old
Andreas L. Delmelle 13 anos atrás
pai
commit
3b87eee32c

+ 1
- 1
src/java/org/apache/fop/render/pdf/PDFLogicalStructureHandler.java Ver arquivo

@@ -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);
}


Carregando…
Cancelar
Salvar