diff options
author | Vincent Hennebert <vhennebert@apache.org> | 2008-01-10 17:41:52 +0000 |
---|---|---|
committer | Vincent Hennebert <vhennebert@apache.org> | 2008-01-10 17:41:52 +0000 |
commit | 29e6465b7caefae6fc6beb04ff63c5d65eeb5504 (patch) | |
tree | a8bcb2a1bed53595cb090025defdec6eb67ce717 | |
parent | 8fb6ba565df16744165598c9a74d3dcc5ac85795 (diff) | |
download | xmlgraphics-fop-29e6465b7caefae6fc6beb04ff63c5d65eeb5504.tar.gz xmlgraphics-fop-29e6465b7caefae6fc6beb04ff63c5d65eeb5504.zip |
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
-rw-r--r-- | src/java/org/apache/fop/layoutmgr/table/RowPainter.java | 3 |
1 files changed, 1 insertions, 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. |