aboutsummaryrefslogtreecommitdiffstats
path: root/src/java
diff options
context:
space:
mode:
authorJeremias Maerki <jeremias@apache.org>2005-05-17 10:06:29 +0000
committerJeremias Maerki <jeremias@apache.org>2005-05-17 10:06:29 +0000
commit35caddb90abdb7d445db236041c221d7fc9bf8a1 (patch)
tree8e48ba596377e17f46828dddb5b3c9cdb52f816e /src/java
parentba56ae964a3323e56a741462614605ad577b104c (diff)
downloadxmlgraphics-fop-35caddb90abdb7d445db236041c221d7fc9bf8a1.tar.gz
xmlgraphics-fop-35caddb90abdb7d445db236041c221d7fc9bf8a1.zip
Bugfix: When a grid unit is incomplete at the page break, it is not rendered on the first page.
Reported By: Simon Pepping git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@198636 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java')
-rw-r--r--src/java/org/apache/fop/layoutmgr/table/TableContentLayoutManager.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/java/org/apache/fop/layoutmgr/table/TableContentLayoutManager.java b/src/java/org/apache/fop/layoutmgr/table/TableContentLayoutManager.java
index cebbd4f28..a02c5ecee 100644
--- a/src/java/org/apache/fop/layoutmgr/table/TableContentLayoutManager.java
+++ b/src/java/org/apache/fop/layoutmgr/table/TableContentLayoutManager.java
@@ -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