aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache/fop/fo/pagination/PageSequenceMaster.java
diff options
context:
space:
mode:
authorSimon Steiner <ssteiner@apache.org>2016-01-06 12:13:52 +0000
committerSimon Steiner <ssteiner@apache.org>2016-01-06 12:13:52 +0000
commit51f22319512e0a50b6f2c0e63da01b79a392275c (patch)
tree401b2816e43bd2d610321c93096a57c55045b588 /src/java/org/apache/fop/fo/pagination/PageSequenceMaster.java
parentd88b17f110e6d3e9683c316d460ae5e6e2ed4f1b (diff)
downloadxmlgraphics-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/fo/pagination/PageSequenceMaster.java')
-rw-r--r--src/java/org/apache/fop/fo/pagination/PageSequenceMaster.java18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/java/org/apache/fop/fo/pagination/PageSequenceMaster.java b/src/java/org/apache/fop/fo/pagination/PageSequenceMaster.java
index 86d5ff663..f218e43b4 100644
--- a/src/java/org/apache/fop/fo/pagination/PageSequenceMaster.java
+++ b/src/java/org/apache/fop/fo/pagination/PageSequenceMaster.java
@@ -254,6 +254,24 @@ public class PageSequenceMaster extends FObj {
return FO_PAGE_SEQUENCE_MASTER;
}
+ public SimplePageMaster getLastSimplePageMaster(boolean isOddPage, boolean isFirstPage, boolean isBlank,
+ String flowName) {
+ if (currentSubSequence == null) {
+ currentSubSequence = getNextSubSequence();
+ if (currentSubSequence == null) {
+ blockLevelEventProducer.missingSubsequencesInPageSequenceMaster(this, masterName,
+ getLocator());
+ }
+ if (currentSubSequence.isInfinite() && !currentSubSequence.canProcess(flowName)) {
+ throw new PageProductionException(
+ "The current sub-sequence will not terminate whilst processing the main flow");
+ }
+ }
+
+ SimplePageMaster pageMaster = currentSubSequence.getLastPageMaster(isOddPage, isFirstPage, isBlank,
+ blockLevelEventProducer);
+ return pageMaster;
+ }
}