diff options
author | Jeremias Maerki <jeremias@apache.org> | 2005-05-23 07:43:05 +0000 |
---|---|---|
committer | Jeremias Maerki <jeremias@apache.org> | 2005-05-23 07:43:05 +0000 |
commit | 4b69173061fbac84b9fa44cca5db0b290ba5d864 (patch) | |
tree | 27dafd4a9210193845512ce52f5bd518078a69b4 /src/java/org/apache/fop/layoutmgr/table/TableStepper.java | |
parent | d86c4ef2527ed656c5bba0cf71a5f9efafc857b9 (diff) | |
download | xmlgraphics-fop-4b69173061fbac84b9fa44cca5db0b290ba5d864.tar.gz xmlgraphics-fop-4b69173061fbac84b9fa44cca5db0b290ba5d864.zip |
Fixes for a few minor problems in certain special cases.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@198666 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/fop/layoutmgr/table/TableStepper.java')
-rw-r--r-- | src/java/org/apache/fop/layoutmgr/table/TableStepper.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/java/org/apache/fop/layoutmgr/table/TableStepper.java b/src/java/org/apache/fop/layoutmgr/table/TableStepper.java index 9600053ab..67427d169 100644 --- a/src/java/org/apache/fop/layoutmgr/table/TableStepper.java +++ b/src/java/org/apache/fop/layoutmgr/table/TableStepper.java @@ -185,7 +185,7 @@ public class TableStepper { int step; int addedBoxLen = 0; LinkedList returnList = new LinkedList(); - while ((step = getNextStep(laststep)) > 0) { + while ((step = getNextStep(laststep)) >= 0) { if (rowBacktrackForLastStep) { //Even though we've already switched to the next row, we have to //calculate as if we were still on the previous row @@ -340,7 +340,7 @@ public class TableStepper { log.debug("borders before=" + borderBefore[i] + " after=" + borderAfter[i]); } if (seqCount == 0) { - return 0; + return -1; } //Determine smallest possible step |