aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache/fop/layoutmgr/AreaAdditionUtil.java
diff options
context:
space:
mode:
authorVincent Hennebert <vhennebert@apache.org>2007-04-20 10:00:05 +0000
committerVincent Hennebert <vhennebert@apache.org>2007-04-20 10:00:05 +0000
commit47007e04dec707234ad097fa3c9a931f28a0111a (patch)
tree6e9d0eea8e3da8729df04d122a68121177d98a9f /src/java/org/apache/fop/layoutmgr/AreaAdditionUtil.java
parent69ebbadae6522167b0b3b958222f9aeb365eb37b (diff)
downloadxmlgraphics-fop-47007e04dec707234ad097fa3c9a931f28a0111a.tar.gz
xmlgraphics-fop-47007e04dec707234ad097fa3c9a931f28a0111a.zip
Fix the computation of cells' IPD when they contain children with forced breaks.
In such cases TableCellLM.getNextKnuthElements was called several times, and thus the borders/paddings of the cell were substracted several times from the IPD. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@530724 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/fop/layoutmgr/AreaAdditionUtil.java')
-rw-r--r--src/java/org/apache/fop/layoutmgr/AreaAdditionUtil.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/java/org/apache/fop/layoutmgr/AreaAdditionUtil.java b/src/java/org/apache/fop/layoutmgr/AreaAdditionUtil.java
index 8892eae16..aed12a687 100644
--- a/src/java/org/apache/fop/layoutmgr/AreaAdditionUtil.java
+++ b/src/java/org/apache/fop/layoutmgr/AreaAdditionUtil.java
@@ -101,6 +101,8 @@ public class AreaAdditionUtil {
StackingIter childPosIter = new StackingIter(positionList.listIterator());
while ((childLM = childPosIter.getNextChildLM()) != null) {
+ // TODO vh: the test above might be problematic in some cases. See comment in
+ // the TableCellLM.getNextKnuthElements method
// Add the block areas to Area
lc.setFlags(LayoutContext.FIRST_AREA, childLM == firstLM);
lc.setFlags(LayoutContext.LAST_AREA, childLM == lastLM);