diff options
author | Simon Steiner <ssteiner@apache.org> | 2016-01-06 12:13:52 +0000 |
---|---|---|
committer | Simon Steiner <ssteiner@apache.org> | 2016-01-06 12:13:52 +0000 |
commit | 51f22319512e0a50b6f2c0e63da01b79a392275c (patch) | |
tree | 401b2816e43bd2d610321c93096a57c55045b588 /src/java/org/apache/fop/layoutmgr/AbstractPageSequenceLayoutManager.java | |
parent | d88b17f110e6d3e9683c316d460ae5e6e2ed4f1b (diff) | |
download | xmlgraphics-fop-51f22319512e0a50b6f2c0e63da01b79a392275c.tar.gz xmlgraphics-fop-51f22319512e0a50b6f2c0e63da01b79a392275c.zip |
FOP-2335: Content is missing after IPD change
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1723297 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/fop/layoutmgr/AbstractPageSequenceLayoutManager.java')
-rw-r--r-- | src/java/org/apache/fop/layoutmgr/AbstractPageSequenceLayoutManager.java | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/java/org/apache/fop/layoutmgr/AbstractPageSequenceLayoutManager.java b/src/java/org/apache/fop/layoutmgr/AbstractPageSequenceLayoutManager.java index 7faa0565e..8435ad093 100644 --- a/src/java/org/apache/fop/layoutmgr/AbstractPageSequenceLayoutManager.java +++ b/src/java/org/apache/fop/layoutmgr/AbstractPageSequenceLayoutManager.java @@ -383,6 +383,11 @@ public abstract class AbstractPageSequenceLayoutManager extends AbstractLayoutMa if (curPage != null) { finishPage(); } + + while (forcePageCount != Constants.EN_NO_FORCE && getCurrentPageNum() < getLastPageNumber()) { + curPage = makeNewPage(true); + finishPage(); + } } /** {@inheritDoc} */ @@ -390,4 +395,7 @@ public abstract class AbstractPageSequenceLayoutManager extends AbstractLayoutMa throw new IllegalStateException(); } + protected int getLastPageNumber() { + return currentPageNum; + } } |