From: Keiron Liddle Date: Wed, 14 Aug 2002 14:46:41 +0000 (+0000) Subject: fixed reset, only does it when restarting leaf node X-Git-Tag: Alt-Design-integration-base~454 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=7137bc477f21d645157cf35b1b361b7e4bec3755;p=xmlgraphics-fop.git 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 --- 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) {