From 29e6465b7caefae6fc6beb04ff63c5d65eeb5504 Mon Sep 17 00:00:00 2001 From: Vincent Hennebert Date: Thu, 10 Jan 2008 17:41:52 +0000 Subject: No need to check if the end of the cell is reached when creating the areas for a row git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@610848 13f79535-47bb-0310-9956-ffa450edef68 --- src/java/org/apache/fop/layoutmgr/table/RowPainter.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/java/org/apache/fop/layoutmgr/table/RowPainter.java b/src/java/org/apache/fop/layoutmgr/table/RowPainter.java index 6d2568afb..3df06e482 100644 --- a/src/java/org/apache/fop/layoutmgr/table/RowPainter.java +++ b/src/java/org/apache/fop/layoutmgr/table/RowPainter.java @@ -170,8 +170,7 @@ class RowPainter { for (int i = 0; i < primaryGridUnits.length; i++) { GridUnit currentGU = lastRow.getGridUnit(i); if (primaryGridUnits[i] != null) { - if (forcedFlush || ((end[i] == primaryGridUnits[i].getElements().size() - 1) - && currentGU.isLastGridUnitRowSpan())) { + if (forcedFlush || currentGU.isLastGridUnitRowSpan()) { //the last line in the "if" above is to avoid a premature end of a //row-spanned cell because no CellParts are generated after a cell is //finished with its content. -- cgit v1.2.3