From: Vincent Hennebert Date: Tue, 23 Feb 2010 16:13:59 +0000 (+0000) Subject: Bugfix: definition of a special page-master for the last page was interfering with... X-Git-Tag: fop-1_0~52 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=b85576c83aae041fdc0d74d95f059bbf1c9c19dc;p=xmlgraphics-fop.git Bugfix: definition of a special page-master for the last page was interfering with changing IPD code git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@915406 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/java/org/apache/fop/layoutmgr/AbstractBreaker.java b/src/java/org/apache/fop/layoutmgr/AbstractBreaker.java index db0edb42c..07c2a3d36 100644 --- a/src/java/org/apache/fop/layoutmgr/AbstractBreaker.java +++ b/src/java/org/apache/fop/layoutmgr/AbstractBreaker.java @@ -435,7 +435,7 @@ public abstract class AbstractBreaker { } log.trace("IPD changes after page " + optimalPageCount + " at index " + optimalBreak.position); - doPhase3(alg, optimalPageCount, blockList, effectiveList); + addAreas(alg, optimalPageCount, blockList, effectiveList); blockLists.clear(); blockListIndex = -1; diff --git a/test/layoutengine/standard-testcases/flow_changing-ipd_last-page.xml b/test/layoutengine/standard-testcases/flow_changing-ipd_last-page.xml new file mode 100644 index 000000000..603c5e316 --- /dev/null +++ b/test/layoutengine/standard-testcases/flow_changing-ipd_last-page.xml @@ -0,0 +1,60 @@ + + + + + +

+ This test checks that the definition of a special page-master for the last page does not + interfere with the changing IPD code. +

+
+ + + + + + + + + + + + + + + + + + + + First block + + Block before the page break. + Block after the page break. + + + + + + + + + +