From: Andreas L. Delmelle Date: Sun, 6 Feb 2011 01:15:39 +0000 (+0000) Subject: Restored part that would otherwise cause a StackOverflowError... X-Git-Tag: fop-1_1rc1old~323 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=8dd910c9acc446dc2560ab66e80f7f8c67347577;p=xmlgraphics-fop.git Restored part that would otherwise cause a StackOverflowError... git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1067565 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/java/org/apache/fop/layoutmgr/BlockLayoutManager.java b/src/java/org/apache/fop/layoutmgr/BlockLayoutManager.java index fdb0e5347..bfcc44b3c 100644 --- a/src/java/org/apache/fop/layoutmgr/BlockLayoutManager.java +++ b/src/java/org/apache/fop/layoutmgr/BlockLayoutManager.java @@ -268,7 +268,9 @@ public class BlockLayoutManager extends BlockStackingLayoutManager innerPosition = pos.getPosition(); } - if (innerPosition != null) { + if (innerPosition != null + && (innerPosition.getLM() != this + || innerPosition instanceof MappingPosition)) { // innerPosition was created by another LM positionList.add(innerPosition); lastLM = innerPosition.getLM();