]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Removed endPart() method and moved its content into addAreasAndFlushRow()
authorVincent Hennebert <vhennebert@apache.org>
Thu, 10 Jan 2008 19:23:56 +0000 (19:23 +0000)
committerVincent Hennebert <vhennebert@apache.org>
Thu, 10 Jan 2008 19:23:56 +0000 (19:23 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@610886 13f79535-47bb-0310-9956-ffa450edef68

src/java/org/apache/fop/layoutmgr/table/RowPainter.java
src/java/org/apache/fop/layoutmgr/table/TableContentLayoutManager.java

index f31076537dbecfc0f9c439ceb7fe46d8d9f64902..1af05cc99c8e039e60924050af7b0b6ecccb3401 100644 (file)
@@ -187,8 +187,10 @@ class RowPainter {
             // (header, footer, body) has been reached, and the next row will anyway be
             // different from the current one, and this is unnecessary to recall this
             // method in the first lines of handleTableContentPosition, so we may reset
-            // lastRow
+            // the following variables
             lastRow = null;
+            firstRowIndex = -1;
+            rowOffsets.clear();
         }
         return actualRowHeight;
     }
@@ -358,9 +360,4 @@ class RowPainter {
     private int getRowOffset(int rowIndex) {
         return ((Integer) rowOffsets.get(rowIndex - firstRowIndex)).intValue();
     }
-
-    void endPart() {
-        firstRowIndex = -1;
-        rowOffsets.clear();
-    }
 }
index 308b2cca72294e01b6cab82e762b45a77abd24cf..57972078eb2b73172ccccbaee4cefc33a2f53ea4 100644 (file)
@@ -418,7 +418,6 @@ public class TableContentLayoutManager implements PercentBaseContext {
             handleMarkersAndPositions(lst, body, firstPos, false, painter);
         }
         painter.addAreasAndFlushRow(true);
-        painter.endPart();
     }
 
     private void handleMarkersAndPositions(List positions, TableBody body, boolean firstPos,