]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
fixed reset, only does it when restarting leaf node
authorKeiron Liddle <keiron@apache.org>
Wed, 14 Aug 2002 14:46:41 +0000 (14:46 +0000)
committerKeiron Liddle <keiron@apache.org>
Wed, 14 Aug 2002 14:46:41 +0000 (14:46 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@195086 13f79535-47bb-0310-9956-ffa450edef68

src/org/apache/fop/layoutmgr/LeafNodeLayoutManager.java

index 43cae55ae95dbbc154350b94bbf1f690867d90a0..32c2633e90fd8a81c9d2849b4d8ed1411c90b27d 100644 (file)
@@ -84,7 +84,10 @@ public class LeafNodeLayoutManager extends AbstractBPLayoutManager {
     }
 
     public void resetPosition(Position resetPos) {
-        setFinished(false);
+        // only reset if setting null, start again
+        if(resetPos == null) {
+            setFinished(false);
+        }
     }
 
     public void addAreas(PositionIterator posIter, LayoutContext context) {