You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-commits@xmlgraphics.apache.org by gm...@apache.org on 2004/04/18 04:50:46 UTC

cvs commit: xml-fop/src/java/org/apache/fop/fo/pagination PageSequence.java

gmazza      2004/04/17 19:50:46

  Modified:    src/java/org/apache/fop/fo/pagination PageSequence.java
  Log:
  Apparent off-by-one error fixed for initial-page-number property:
  
  http://www.w3.org/TR/2003/WD-xsl11-20031217/#initial-page-number
  
  Revision  Changes    Path
  1.20      +1 -1      xml-fop/src/java/org/apache/fop/fo/pagination/PageSequence.java
  
  Index: PageSequence.java
  ===================================================================
  RCS file: /home/cvs/xml-fop/src/java/org/apache/fop/fo/pagination/PageSequence.java,v
  retrieving revision 1.19
  retrieving revision 1.20
  diff -u -r1.19 -r1.20
  --- PageSequence.java	31 Mar 2004 10:55:06 -0000	1.19
  +++ PageSequence.java	18 Apr 2004 02:50:46 -0000	1.20
  @@ -169,7 +169,7 @@
               pageNumberType = EXPLICIT;
               try {
                   int pageStart = new Integer(ipnValue).intValue();
  -                this.explicitFirstNumber = (pageStart > 0) ? pageStart - 1 : 0;
  +                this.explicitFirstNumber = (pageStart > 0) ? pageStart : 1;
               } catch (NumberFormatException nfe) {
                   throw new FOPException("\"" + ipnValue
                                          + "\" is not a valid value for initial-page-number");
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-cvs-help@xml.apache.org