]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
No need to check if the end of the cell is reached when creating the areas for a row
authorVincent Hennebert <vhennebert@apache.org>
Thu, 10 Jan 2008 17:41:52 +0000 (17:41 +0000)
committerVincent Hennebert <vhennebert@apache.org>
Thu, 10 Jan 2008 17:41:52 +0000 (17:41 +0000)
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

index 6d2568afb12aa5abfa34aeaebb78baff828b501c..3df06e482dbfa40a9975d10ee4b4cddcaac6635c 100644 (file)
@@ -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.