git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1732903 13f79535-47bb-0310-9956-ffa450edef68tags/fop-2_2
@@ -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(); | |||
} | |||