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 ar...@locus.apache.org on 2000/03/21 11:53:47 UTC

cvs commit: xml-fop/src/org/apache/fop/pdf PDFPages.java

arved       00/03/21 02:53:47

  Modified:    src/org/apache/fop/pdf PDFPages.java
  Log:
  FIX: Finally maybe fix the count thing
  
  Revision  Changes    Path
  1.6       +11 -1     xml-fop/src/org/apache/fop/pdf/PDFPages.java
  
  Index: PDFPages.java
  ===================================================================
  RCS file: /home/cvs/xml-fop/src/org/apache/fop/pdf/PDFPages.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- PDFPages.java	1999/11/22 02:32:04	1.5
  +++ PDFPages.java	2000/03/21 10:53:47	1.6
  @@ -1,4 +1,4 @@
  -/*-- $Id: PDFPages.java,v 1.5 1999/11/22 02:32:04 jtauber Exp $ -- 
  +/*-- $Id: PDFPages.java,v 1.6 2000/03/21 10:53:47 arved Exp $ -- 
   
    ============================================================================
                      The Apache Software License, Version 1.1
  @@ -88,8 +88,10 @@
        * @param page the PDFPage to add.
        */
       public void addPage(PDFPage page) {
  +   	this.count++;
   	this.kids.addElement(page);
   	page.setParent(this);
  +        this.incrementCount();
       }
   
       /**
  @@ -99,6 +101,14 @@
        */
       public int getCount() {
   	return this.count;
  +    }
  +
  +    /**
  +     * increment the count of /Page objects
  +     */
  +    public void incrementCount() {
  +	this.count++;
  +        // System.out.println("Incrementing count to " + this.getCount());
       }
   
       /**