From c6eaf23f85c8a3ba35ae89b11ed46ead1bd2f0a0 Mon Sep 17 00:00:00 2001 From: arved Date: Thu, 20 Apr 2000 08:55:33 +0000 Subject: [PATCH] FIX: initial-page-number git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@193334 13f79535-47bb-0310-9956-ffa450edef68 --- src/org/apache/fop/fo/pagination/PageSequence.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 { -- 2.39.5