]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Restored part that would otherwise cause a StackOverflowError...
authorAndreas L. Delmelle <adelmelle@apache.org>
Sun, 6 Feb 2011 01:15:39 +0000 (01:15 +0000)
committerAndreas L. Delmelle <adelmelle@apache.org>
Sun, 6 Feb 2011 01:15:39 +0000 (01:15 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1067565 13f79535-47bb-0310-9956-ffa450edef68

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

index fdb0e53475ecf820bd2eafaea064006d335b82e0..bfcc44b3c257a928342a0fd745115f228b2519db 100644 (file)
@@ -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();