]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Rename a local variable in the getNextStep method for clarity, and convert it from...
authorVincent Hennebert <vhennebert@apache.org>
Tue, 27 Feb 2007 15:02:26 +0000 (15:02 +0000)
committerVincent Hennebert <vhennebert@apache.org>
Tue, 27 Feb 2007 15:02:26 +0000 (15:02 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@512269 13f79535-47bb-0310-9956-ffa450edef68

src/java/org/apache/fop/layoutmgr/table/TableStepper.java

index 2b36fe7a6c9244d43fcca4bf71cea0ee504d229a..72861cf26c67d9c27850b842705b2f35bdba3f7a 100644 (file)
@@ -443,7 +443,7 @@ public class TableStepper {
         System.arraycopy(widths, 0, backupWidths, 0, backupWidths.length);
 
         //set starting points
-        int rowPendingIndicator = 0;
+        boolean rowSpanPending = true;
         for (int i = 0; i < start.length; i++) {
             if (elementLists[i] == null) {
                 continue;
@@ -452,7 +452,7 @@ public class TableStepper {
                 start[i] = end[i] + 1;
                 if (end[i] + 1 < elementLists[i].size() 
                         && getActiveGridUnit(i).isLastGridUnitRowSpan()) {
-                    rowPendingIndicator++;
+                    rowSpanPending = false;
                 }
             } else {
                 start[i] = -1; //end of list reached
@@ -460,7 +460,7 @@ public class TableStepper {
             }
         }
 
-        if (rowPendingIndicator == 0) {
+        if (rowSpanPending) {
             if (activeRow < rowGroup.length - 1) {
                 TableRow rowFO = getActiveRow().getTableRow();
                 if (rowFO != null && rowFO.getBreakAfter() != Constants.EN_AUTO) {