From 7137bc477f21d645157cf35b1b361b7e4bec3755 Mon Sep 17 00:00:00 2001 From: Keiron Liddle Date: Wed, 14 Aug 2002 14:46:41 +0000 Subject: [PATCH] fixed reset, only does it when restarting leaf node 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 | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/org/apache/fop/layoutmgr/LeafNodeLayoutManager.java b/src/org/apache/fop/layoutmgr/LeafNodeLayoutManager.java index 43cae55ae..32c2633e9 100644 --- a/src/org/apache/fop/layoutmgr/LeafNodeLayoutManager.java +++ b/src/org/apache/fop/layoutmgr/LeafNodeLayoutManager.java @@ -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) { -- 2.39.5