From: Simon Steiner Date: Mon, 29 Feb 2016 14:16:13 +0000 (+0000) Subject: FOP-2581: NumberFormatException when page-sequence format can't be parsed as an Integ... X-Git-Tag: fop-2_2~90 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=fa606aa96ba5b684fd3de7ffda298f37236c7d05;p=xmlgraphics-fop.git 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 --- 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(); }