From dfb872c70f71dd6e83ae8e596917f665b71fcb9d Mon Sep 17 00:00:00 2001 From: Glen Mazza Date: Sun, 18 Apr 2004 02:50:46 +0000 Subject: [PATCH] Apparent off-by-one error fixed for initial-page-number property: http://www.w3.org/TR/2003/WD-xsl11-20031217/#initial-page-number git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197516 13f79535-47bb-0310-9956-ffa450edef68 --- src/java/org/apache/fop/fo/pagination/PageSequence.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/java/org/apache/fop/fo/pagination/PageSequence.java b/src/java/org/apache/fop/fo/pagination/PageSequence.java index 6f28944e2..c89967b3c 100644 --- a/src/java/org/apache/fop/fo/pagination/PageSequence.java +++ b/src/java/org/apache/fop/fo/pagination/PageSequence.java @@ -169,7 +169,7 @@ public class PageSequence extends FObj { pageNumberType = EXPLICIT; try { int pageStart = new Integer(ipnValue).intValue(); - this.explicitFirstNumber = (pageStart > 0) ? pageStart - 1 : 0; + this.explicitFirstNumber = (pageStart > 0) ? pageStart : 1; } catch (NumberFormatException nfe) { throw new FOPException("\"" + ipnValue + "\" is not a valid value for initial-page-number"); -- 2.39.5