From 4bf2205d23c582852223141d8ff9b3418ac57e8a Mon Sep 17 00:00:00 2001 From: Vincent Hennebert Date: Tue, 18 Mar 2008 10:26:32 +0000 Subject: [PATCH] Simplified the getNextKnuthElements method a little bit git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/fop-0_95@638308 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/fop/layoutmgr/BlockStackingLayoutManager.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/java/org/apache/fop/layoutmgr/BlockStackingLayoutManager.java b/src/java/org/apache/fop/layoutmgr/BlockStackingLayoutManager.java index 98606bd1f..67ed1de9f 100644 --- a/src/java/org/apache/fop/layoutmgr/BlockStackingLayoutManager.java +++ b/src/java/org/apache/fop/layoutmgr/BlockStackingLayoutManager.java @@ -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; } -- 2.39.5