aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSimon Steiner <ssteiner@apache.org>2016-02-29 14:16:13 +0000
committerSimon Steiner <ssteiner@apache.org>2016-02-29 14:16:13 +0000
commitfa606aa96ba5b684fd3de7ffda298f37236c7d05 (patch)
treece91787d6e7b309031b0de8b2909b92d1444e732 /src
parent1d993d08dae048d891ffff980ff687b28e15d3d6 (diff)
downloadxmlgraphics-fop-fa606aa96ba5b684fd3de7ffda298f37236c7d05.tar.gz
xmlgraphics-fop-fa606aa96ba5b684fd3de7ffda298f37236c7d05.zip
FOP-2581: NumberFormatException when page-sequence format can't be parsed as an Integer; fix by Alexios Giotis
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1732903 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src')
-rw-r--r--src/java/org/apache/fop/render/intermediate/IFParser.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/java/org/apache/fop/render/intermediate/IFParser.java b/src/java/org/apache/fop/render/intermediate/IFParser.java
index 235e051f9..8d562e465 100644
--- a/src/java/org/apache/fop/render/intermediate/IFParser.java
+++ b/src/java/org/apache/fop/render/intermediate/IFParser.java
@@ -523,7 +523,7 @@ public class IFParser implements IFConstants {
establishForeignAttributes(foreignAttributes);
documentHandler.startPage(index, name, pageMasterName,
new Dimension(width, height));
- documentHandler.getContext().setPageNumber(Integer.parseInt(name));
+ documentHandler.getContext().setPageNumber(index + 1);
resetForeignAttributes();
}