diff options
author | Simon Steiner <ssteiner@apache.org> | 2016-02-29 14:16:13 +0000 |
---|---|---|
committer | Simon Steiner <ssteiner@apache.org> | 2016-02-29 14:16:13 +0000 |
commit | fa606aa96ba5b684fd3de7ffda298f37236c7d05 (patch) | |
tree | ce91787d6e7b309031b0de8b2909b92d1444e732 /src | |
parent | 1d993d08dae048d891ffff980ff687b28e15d3d6 (diff) | |
download | xmlgraphics-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.java | 2 |
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(); } |