From: arved Date: Thu, 20 Apr 2000 08:55:33 +0000 (+0000) Subject: FIX: initial-page-number X-Git-Tag: pre-columns~530 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=c6eaf23f85c8a3ba35ae89b11ed46ead1bd2f0a0;p=xmlgraphics-fop.git FIX: initial-page-number git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@193334 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/org/apache/fop/fo/pagination/PageSequence.java b/src/org/apache/fop/fo/pagination/PageSequence.java index e1ebf88e8..399665d05 100644 --- a/src/org/apache/fop/fo/pagination/PageSequence.java +++ b/src/org/apache/fop/fo/pagination/PageSequence.java @@ -107,7 +107,9 @@ public class PageSequence extends FObj { 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 {