From 47007e04dec707234ad097fa3c9a931f28a0111a Mon Sep 17 00:00:00 2001 From: Vincent Hennebert Date: Fri, 20 Apr 2007 10:00:05 +0000 Subject: 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 --- src/java/org/apache/fop/layoutmgr/AreaAdditionUtil.java | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/java/org/apache/fop/layoutmgr/AreaAdditionUtil.java') 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); -- cgit v1.2.3