From 8b2772dcaf324d135d9902d9df72ad37802d2c55 Mon Sep 17 00:00:00 2001 From: Vincent Hennebert Date: Wed, 18 Apr 2007 08:48:58 +0000 Subject: [PATCH] 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 --- src/java/org/apache/fop/layoutmgr/table/TableStepper.java | 6 +++--- 1 file 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; } -- 2.39.5