Преглед на файлове

Move the content of the now small setupElementList method into initializeElementLists


git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@554711 13f79535-47bb-0310-9956-ffa450edef68
tags/fop-0_94
Vincent Hennebert преди 17 години
родител
ревизия
bf7425006f
променени са 1 файла, в които са добавени 5 реда и са изтрити 9 реда
  1. 5
    9
      src/java/org/apache/fop/layoutmgr/table/TableStepper.java

+ 5
- 9
src/java/org/apache/fop/layoutmgr/table/TableStepper.java Целия файл

@@ -290,22 +290,18 @@ public class TableStepper {
return maxW;
}

private void setupElementList(int column) {
GridUnit gu = getActiveGridUnit(column);
EffRow row = getActiveRow();
if (gu != null && !gu.isEmpty() && gu.isPrimary()) {
activeCells.add(new ActiveCell((PrimaryGridUnit) gu, row, activeRowIndex, rowGroup, getTableLM()));
}
}

/**
* Initializes the informations relative to the Knuth elements, to handle a new row in
* the current row group.
*/
private void initializeElementLists() {
log.trace("Entering initializeElementLists()");
EffRow row = getActiveRow();
for (int i = 0; i < columnCount; i++) {
setupElementList(i);
GridUnit gu = getActiveGridUnit(i);
if (gu != null && !gu.isEmpty() && gu.isPrimary()) {
activeCells.add(new ActiveCell((PrimaryGridUnit) gu, row, activeRowIndex, rowGroup, getTableLM()));
}
}
}


Loading…
Отказ
Запис