Browse Source

FIX: initial-page-number


git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@193334 13f79535-47bb-0310-9956-ffa450edef68
tags/pre-columns
arved 24 years ago
parent
commit
c6eaf23f85
1 changed files with 3 additions and 1 deletions
  1. 3
    1
      src/org/apache/fop/fo/pagination/PageSequence.java

+ 3
- 1
src/org/apache/fop/fo/pagination/PageSequence.java View 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 {

Loading…
Cancel
Save