Преглед изворни кода

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
tags/fop-0_94
Vincent Hennebert пре 17 година
родитељ
комит
8b2772dcaf
1 измењених фајлова са 3 додато и 3 уклоњено
  1. 3
    3
      src/java/org/apache/fop/layoutmgr/table/TableStepper.java

+ 3
- 3
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;
}


Loading…
Откажи
Сачувај