]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Bugfix: When a grid unit is incomplete at the page break, it is not rendered on the...
authorJeremias Maerki <jeremias@apache.org>
Tue, 17 May 2005 10:06:29 +0000 (10:06 +0000)
committerJeremias Maerki <jeremias@apache.org>
Tue, 17 May 2005 10:06:29 +0000 (10:06 +0000)
Reported By: Simon Pepping

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@198636 13f79535-47bb-0310-9956-ffa450edef68

src/java/org/apache/fop/layoutmgr/table/TableContentLayoutManager.java

index cebbd4f286f2f8296919767312f8a4f2c14bcd92..a02c5eceeb2df941538d417a92b4f77cb355b981 100644 (file)
@@ -676,8 +676,8 @@ public class TableContentLayoutManager {
             for (int i = 0; i < gridUnits.length; i++) {
                 GridUnit currentGU = lastRow.safelyGetGridUnit(i);
                 if ((gridUnits[i] != null) 
-                        && (forcedFlush || (end[i] == gridUnits[i].getElements().size() - 1))
-                        && (currentGU == null || currentGU.isLastGridUnitRowSpan())) {
+                        && (forcedFlush || ((end[i] == gridUnits[i].getElements().size() - 1))
+                                && (currentGU == null || currentGU.isLastGridUnitRowSpan()))) {
                     //the last line in the "if" above is to avoid a premature end of an 
                     //row-spanned cell because no GridUnitParts are generated after a cell is
                     //finished with its content. currentGU can be null if there's no grid unit