]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Simplified the getNextKnuthElements method a little bit
authorVincent Hennebert <vhennebert@apache.org>
Tue, 18 Mar 2008 10:26:32 +0000 (10:26 +0000)
committerVincent Hennebert <vhennebert@apache.org>
Tue, 18 Mar 2008 10:26:32 +0000 (10:26 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/fop-0_95@638308 13f79535-47bb-0310-9956-ffa450edef68

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

index 98606bd1f744e6f24c003dfd73a305845c7bb092..67ed1de9f41202e533531ccb6ad874d5d437bb28 100644 (file)
@@ -297,9 +297,7 @@ public abstract class BlockStackingLayoutManager extends AbstractLayoutManager
 
                 if (curLM.isFinished() && !hasNextChildLM()) {
                     // a descendant of this block has break-before
-                    contentList.addAll(returnedList);
-
-                    forcedBreakAfterLast = (BreakElement)contentList.removeLast();
+                    forcedBreakAfterLast = (BreakElement) returnedList.getFirst();
                     context.clearPendingMarks();
                     break;
                 }