aboutsummaryrefslogtreecommitdiffstats
path: root/src/java
diff options
context:
space:
mode:
authorGlen Mazza <gmazza@apache.org>2004-04-18 02:50:46 +0000
committerGlen Mazza <gmazza@apache.org>2004-04-18 02:50:46 +0000
commitdfb872c70f71dd6e83ae8e596917f665b71fcb9d (patch)
tree4ca219ec2546fccacfef1a5f7d849a8f3f927056 /src/java
parenta2b128dd5e7355bc155395919ec510612fa880cc (diff)
downloadxmlgraphics-fop-dfb872c70f71dd6e83ae8e596917f665b71fcb9d.tar.gz
xmlgraphics-fop-dfb872c70f71dd6e83ae8e596917f665b71fcb9d.zip
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
Diffstat (limited to 'src/java')
-rw-r--r--src/java/org/apache/fop/fo/pagination/PageSequence.java2
1 files changed, 1 insertions, 1 deletions
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");