diff options
Diffstat (limited to 'src/java/org/apache/fop/layoutmgr/LMiter.java')
-rw-r--r-- | src/java/org/apache/fop/layoutmgr/LMiter.java | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/java/org/apache/fop/layoutmgr/LMiter.java b/src/java/org/apache/fop/layoutmgr/LMiter.java index 0fee8cdf7..8ace2a2ad 100644 --- a/src/java/org/apache/fop/layoutmgr/LMiter.java +++ b/src/java/org/apache/fop/layoutmgr/LMiter.java @@ -64,9 +64,11 @@ public class LMiter implements ListIterator { private FObj curFO; protected List listLMs; protected int curPos = 0; - private AddLMVisitor addLMVisitor = new AddLMVisitor(); + /** The LayoutProcessor to which this LMiter is attached **/ + private LayoutProcessor lp; - public LMiter(ListIterator bIter) { + public LMiter(LayoutProcessor lp, ListIterator bIter) { + this.lp = lp; baseIter = bIter; listLMs = new ArrayList(10); } @@ -76,6 +78,7 @@ public class LMiter implements ListIterator { } protected boolean preLoadNext() { + AddLMVisitor addLMVisitor = lp.getLayoutManagerLS().getAddLMVisitor(); // skip over child FObj's that don't add lms while (baseIter != null && baseIter.hasNext()) { Object theobj = baseIter.next(); |