diff options
author | Vincent Hennebert <vhennebert@apache.org> | 2007-04-18 08:48:58 +0000 |
---|---|---|
committer | Vincent Hennebert <vhennebert@apache.org> | 2007-04-18 08:48:58 +0000 |
commit | 8b2772dcaf324d135d9902d9df72ad37802d2c55 (patch) | |
tree | 1a4a9485ee0184a8d1d75f90c8025761f9097597 /src | |
parent | 3839d6c734c46c4a209c2a81df2a1609c18952c9 (diff) | |
download | xmlgraphics-fop-8b2772dcaf324d135d9902d9df72ad37802d2c55.tar.gz xmlgraphics-fop-8b2772dcaf324d135d9902d9df72ad37802d2c55.zip |
Replace the seqCount integer with a stepFound boolean in the getNextStep method
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@529921 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src')
-rw-r--r-- | src/java/org/apache/fop/layoutmgr/table/TableStepper.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/java/org/apache/fop/layoutmgr/table/TableStepper.java b/src/java/org/apache/fop/layoutmgr/table/TableStepper.java index 1415c628a..4d76dbe64 100644 --- a/src/java/org/apache/fop/layoutmgr/table/TableStepper.java +++ b/src/java/org/apache/fop/layoutmgr/table/TableStepper.java @@ -516,7 +516,7 @@ public class TableStepper { } //Get next possible sequence for each cell - int seqCount = 0; + boolean stepFound = false; for (int i = 0; i < columnCount; i++) { if (elementLists[i] == null) { continue; @@ -554,7 +554,7 @@ public class TableStepper { } widths[i] = backupWidths[i]; } else { - seqCount++; + stepFound = true; } //log.debug("part " + start[i] + "-" + end[i] + " " + widths[i]); if (end[i] + 1 >= elementLists[i].size()) { @@ -580,7 +580,7 @@ public class TableStepper { log.trace("column " + (i+1) + ": padding before=" + paddingBefore[i] + " after=" + paddingAfter[i]); } } - if (seqCount == 0) { + if (stepFound) { return -1; } |