From fa606aa96ba5b684fd3de7ffda298f37236c7d05 Mon Sep 17 00:00:00 2001 From: Simon Steiner Date: Mon, 29 Feb 2016 14:16:13 +0000 Subject: [PATCH] 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 --- src/java/org/apache/fop/render/intermediate/IFParser.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); } -- 2.39.5