diff options
author | Vincent Hennebert <vhennebert@apache.org> | 2007-02-27 15:02:26 +0000 |
---|---|---|
committer | Vincent Hennebert <vhennebert@apache.org> | 2007-02-27 15:02:26 +0000 |
commit | 9006a4682dc937f7e6f8ba2acd578d03c71a7338 (patch) | |
tree | e9cb7291b910cb334dc663c3a0327d8b4f4eeb50 /src/java/org/apache/fop/layoutmgr | |
parent | 1072e70fb74b67ecefe006ab3880e8201f6e2e2d (diff) | |
download | xmlgraphics-fop-9006a4682dc937f7e6f8ba2acd578d03c71a7338.tar.gz xmlgraphics-fop-9006a4682dc937f7e6f8ba2acd578d03c71a7338.zip |
Rename a local variable in the getNextStep method for clarity, and convert it from an integer to a boolean
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@512269 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/fop/layoutmgr')
-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 2b36fe7a6..72861cf26 100644 --- a/src/java/org/apache/fop/layoutmgr/table/TableStepper.java +++ b/src/java/org/apache/fop/layoutmgr/table/TableStepper.java @@ -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) { |