]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Bugfix: Proper handling of page break between normally broken parts and the parts...
authorJeremias Maerki <jeremias@apache.org>
Mon, 11 Jul 2005 07:20:42 +0000 (07:20 +0000)
committerJeremias Maerki <jeremias@apache.org>
Mon, 11 Jul 2005 07:20:42 +0000 (07:20 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@210078 13f79535-47bb-0310-9956-ffa450edef68

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

index 3622d0908360c1df84f67e7810878d1022821481..d8014787dd1f93ccf1e013ddb7f051102661484d 100644 (file)
@@ -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(),