git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@193334
13f79535-47bb-0310-9956-
ffa450edef68
layoutMasterSet = root.getLayoutMasterSet();
InitialPageNumber ipn = (InitialPageNumber) this.properties.get("initial-page-number");
- this.currentPageNumber = ipn.getInteger().intValue() - 1;
+ int pageStart = ipn.getInteger().intValue();
+ this.currentPageNumber =
+ (pageStart > 0) ? pageStart - 1 : 0;
}
protected Page makePage(AreaTree areaTree) throws FOPException {