diff options
author | Vincent Hennebert <vhennebert@apache.org> | 2012-07-12 13:25:34 +0000 |
---|---|---|
committer | Vincent Hennebert <vhennebert@apache.org> | 2012-07-12 13:25:34 +0000 |
commit | 3411937d72c11789edcec519e456dd3a0a1595f9 (patch) | |
tree | 90ee7b5bbee3d66e49ff31586a3c2cf35be369a9 /src/java/org/apache/fop/layoutmgr/PageBreaker.java | |
parent | 3325a6c6c4114b2cbd3926b79e057a92660b8c0d (diff) | |
download | xmlgraphics-fop-3411937d72c11789edcec519e456dd3a0a1595f9.tar.gz xmlgraphics-fop-3411937d72c11789edcec519e456dd3a0a1595f9.zip |
Bugfix: When restarting layout for the last page, discard glues and penalties at the beginning of the restarted Knuth sequence.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1360665 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/fop/layoutmgr/PageBreaker.java')
-rw-r--r-- | src/java/org/apache/fop/layoutmgr/PageBreaker.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/java/org/apache/fop/layoutmgr/PageBreaker.java b/src/java/org/apache/fop/layoutmgr/PageBreaker.java index 8fd131a73..777180c55 100644 --- a/src/java/org/apache/fop/layoutmgr/PageBreaker.java +++ b/src/java/org/apache/fop/layoutmgr/PageBreaker.java @@ -330,7 +330,7 @@ public class PageBreaker extends AbstractBreaker { //Get page break from which we restart PageBreakPosition pbp = (PageBreakPosition) alg.getPageBreaks().get(restartPoint - 1); - newStartPos = pbp.getLeafPos() + 1; + newStartPos = alg.par.getFirstBoxIndex(pbp.getLeafPos() + 1); //Handle page break right here to avoid any side-effects if (newStartPos > 0) { handleBreakTrait(Constants.EN_PAGE); |