]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
FIX: initial-page-number
authorarved <arved@unknown>
Thu, 20 Apr 2000 08:55:33 +0000 (08:55 +0000)
committerarved <arved@unknown>
Thu, 20 Apr 2000 08:55:33 +0000 (08:55 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@193334 13f79535-47bb-0310-9956-ffa450edef68

src/org/apache/fop/fo/pagination/PageSequence.java

index e1ebf88e8b41f52990cea573d25e7d3555a6d480..399665d05c7e9537a6889d1a2aa9eba948f3d182 100644 (file)
@@ -107,7 +107,9 @@ public class PageSequence extends FObj {
        layoutMasterSet = root.getLayoutMasterSet();
 
        InitialPageNumber ipn = (InitialPageNumber) this.properties.get("initial-page-number");
-       this.currentPageNumber = ipn.getInteger().intValue() - 1;
+       int pageStart = ipn.getInteger().intValue();
+       this.currentPageNumber =
+           (pageStart > 0) ? pageStart - 1 : 0;
     }
 
     protected Page makePage(AreaTree areaTree) throws FOPException {