Jakub Gwóźdź created FOP-2763:
---------------------------------
Summary: retrieve-table-marker on nested tables causes whole
tables to disappear
Key: FOP-2763
URL: https://issues.apache.org/jira/browse/FOP-2763
Project: FOP
Issue Type: Bug
Components: fo/block
Affects Versions: 2.2, 2.1
Reporter: Jakub Gwóźdź
Attachments: markers.fo.xml, result.pdf
When fo:table with retrieve-table-marker is nested in another fo:table, invalid
code causes whole inner table to disappear.
This is probably because
org.apache.fop.fo.flow.RetrieveTableMarker#findAncestor marks ALL parent
table-cells up to fo:flow as HavingRetrieveTableMarker, instead of marking just
current table's cell.
See my proof of bug with demonstrations at
https://github.com/jakubgwozdz/fop-retrieve-table-markers-bug
The initial workaround could involve something like this:
{code:java}
if (temp.getNameId() == FO_TABLE && (ancestorID == FO_TABLE_HEADER ||
ancestorID == FO_TABLE_FOOTER)) {
return -1;
}
{code}
at /org/apache/fop/fo/flow/RetrieveTableMarker.java:104
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)