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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to