]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Small factorization: put painter.addAreasAndFlushRow at the end of iterateAndPaintPos...
authorVincent Hennebert <vhennebert@apache.org>
Thu, 1 Mar 2007 10:55:09 +0000 (10:55 +0000)
committerVincent Hennebert <vhennebert@apache.org>
Thu, 1 Mar 2007 10:55:09 +0000 (10:55 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@513271 13f79535-47bb-0310-9956-ffa450edef68

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

index 57370d1441902b763b91075f9901f2ec4b6dbbfe..8d4f25f3d8b73c477d36e6bf876166adad6bee86 100644 (file)
@@ -678,20 +678,17 @@ public class TableContentLayoutManager implements PercentBaseContext {
             //be handled first before all other TableContentPositions
             PositionIterator nestedIter = new KnuthPossPosIter(headerElements);
             iterateAndPaintPositions(nestedIter, painter);
-            painter.addAreasAndFlushRow(true);
         }
         
         //Iterate over all steps
         Iterator posIter = positions.iterator();
         iterateAndPaintPositions(posIter, painter);
-        painter.addAreasAndFlushRow(true);
 
         painter.notifyNestedPenaltyArea(nestedPenaltyArea);
         if (footerElements != null) {
             //Positions for footers are simply added at the end
             PositionIterator nestedIter = new KnuthPossPosIter(footerElements);
             iterateAndPaintPositions(nestedIter, painter);
-            painter.addAreasAndFlushRow(true);
         }
         
         painter.notifyEndOfSequence();
@@ -755,6 +752,7 @@ public class TableContentLayoutManager implements PercentBaseContext {
             getTableLM().getCurrentPV().addMarkers(body.getMarkers(), 
                     false, firstPos, lastPos);
         }
+        painter.addAreasAndFlushRow(true);
     }
    
     /**