]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Move the content of the now small setupElementList method into initializeElementLists
authorVincent Hennebert <vhennebert@apache.org>
Mon, 9 Jul 2007 17:05:18 +0000 (17:05 +0000)
committerVincent Hennebert <vhennebert@apache.org>
Mon, 9 Jul 2007 17:05:18 +0000 (17:05 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@554711 13f79535-47bb-0310-9956-ffa450edef68

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

index 49b98f1016afcc2673e45477731049a61679c93e..2ce33fb4c129de372ce41aad576a2b787fb7a77c 100644 (file)
@@ -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()));
+            }
         }
     }