]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
FOP-2581: NumberFormatException when page-sequence format can't be parsed as an Integ...
authorSimon Steiner <ssteiner@apache.org>
Mon, 29 Feb 2016 14:16:13 +0000 (14:16 +0000)
committerSimon Steiner <ssteiner@apache.org>
Mon, 29 Feb 2016 14:16:13 +0000 (14:16 +0000)
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

index 235e051f938f6590c55b4b308c80328a4ecbcb16..8d562e46509fe9667856c195cd75ad7137860023 100644 (file)
@@ -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();
             }