From 01169d16ef99a7f8cd6dddc80e2635c81e0077b3 Mon Sep 17 00:00:00 2001 From: Jeremias Maerki Date: Mon, 11 Jul 2005 07:20:42 +0000 Subject: [PATCH] Bugfix: Proper handling of page break between normally broken parts and the parts that need to be balanced. (multi-column layout, fixes multi-column2a) git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@210078 13f79535-47bb-0310-9956-ffa450edef68 --- .../apache/fop/layoutmgr/PageSequenceLayoutManager.java | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/java/org/apache/fop/layoutmgr/PageSequenceLayoutManager.java b/src/java/org/apache/fop/layoutmgr/PageSequenceLayoutManager.java index 3622d0908..d8014787d 100644 --- a/src/java/org/apache/fop/layoutmgr/PageSequenceLayoutManager.java +++ b/src/java/org/apache/fop/layoutmgr/PageSequenceLayoutManager.java @@ -317,7 +317,14 @@ public class PageSequenceLayoutManager extends AbstractLayoutManager { newStartPos = 0; } log.debug("Restarting at " + restartPoint + ", new start position: " + newStartPos); - + + //Handle page break right here to avoid any side-effects + handleBreakTrait(EN_PAGE); + pageBreakHandled = true; + //Update so the available BPD is reported correctly + pvProvider.setStartOfNextElementList(currentPageNum, + curPV.getCurrentSpan().getCurrentFlowIndex()); + //Restart last page PageBreakingAlgorithm algRestart = new BalancingColumnBreakingAlgorithm( getTopLevelLM(), -- 2.39.5