diff options
Diffstat (limited to 'src/java/org/apache/fop/layoutmgr/PageBreaker.java')
-rw-r--r-- | src/java/org/apache/fop/layoutmgr/PageBreaker.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/java/org/apache/fop/layoutmgr/PageBreaker.java b/src/java/org/apache/fop/layoutmgr/PageBreaker.java index 309f4e32f..6a10fa22f 100644 --- a/src/java/org/apache/fop/layoutmgr/PageBreaker.java +++ b/src/java/org/apache/fop/layoutmgr/PageBreaker.java @@ -298,7 +298,8 @@ public class PageBreaker extends AbstractBreaker { return; } - boolean lastPageMasterDefined = pslm.getPageSequence().hasPagePositionLast(); + boolean lastPageMasterDefined = pslm.getPageSequence().hasPagePositionLast() + || pslm.getPageSequence().hasPagePositionOnly() && pslm.isOnFirstPage(partCount - 1); if (!hasMoreContent()) { //last part is reached if (lastPageMasterDefined) { |