Author: vhennebert
Date: Wed Apr 18 01:48:58 2007
New Revision: 529921

URL: http://svn.apache.org/viewvc?view=rev&rev=529921
Log:
Replace the seqCount integer with a stepFound boolean in the getNextStep method

Modified:
    
xmlgraphics/fop/trunk/src/java/org/apache/fop/layoutmgr/table/TableStepper.java

Modified: 
xmlgraphics/fop/trunk/src/java/org/apache/fop/layoutmgr/table/TableStepper.java
URL: 
http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/java/org/apache/fop/layoutmgr/table/TableStepper.java?view=diff&rev=529921&r1=529920&r2=529921
==============================================================================
--- 
xmlgraphics/fop/trunk/src/java/org/apache/fop/layoutmgr/table/TableStepper.java 
(original)
+++ 
xmlgraphics/fop/trunk/src/java/org/apache/fop/layoutmgr/table/TableStepper.java 
Wed Apr 18 01:48:58 2007
@@ -516,7 +516,7 @@
         }
 
         //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 @@
                 }
                 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 @@
                 log.trace("column " + (i+1) + ": padding before=" + 
paddingBefore[i] + " after=" + paddingAfter[i]);
             }
         }
-        if (seqCount == 0) {
+        if (stepFound) {
             return -1;
         }
 



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to