diff options
author | Vincent Hennebert <vhennebert@apache.org> | 2007-07-09 17:05:18 +0000 |
---|---|---|
committer | Vincent Hennebert <vhennebert@apache.org> | 2007-07-09 17:05:18 +0000 |
commit | bf7425006f728b22486e6d56b0c9ff885fab5635 (patch) | |
tree | 61254058f56c931419d9ec3fcc6a913e8b88dc45 /src/java | |
parent | 9318fb5d17ba087e5c32564f99e4506555e4634d (diff) | |
download | xmlgraphics-fop-bf7425006f728b22486e6d56b0c9ff885fab5635.tar.gz xmlgraphics-fop-bf7425006f728b22486e6d56b0c9ff885fab5635.zip |
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
Diffstat (limited to 'src/java')
-rw-r--r-- | src/java/org/apache/fop/layoutmgr/table/TableStepper.java | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/src/java/org/apache/fop/layoutmgr/table/TableStepper.java b/src/java/org/apache/fop/layoutmgr/table/TableStepper.java index 49b98f101..2ce33fb4c 100644 --- a/src/java/org/apache/fop/layoutmgr/table/TableStepper.java +++ b/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())); + } } } |