From: arved Date: Tue, 21 Mar 2000 10:53:47 +0000 (+0000) Subject: FIX: Finally maybe fix the count thing X-Git-Tag: pre-columns~556 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=84bf5cd6f0643c34c645e563b377f65f79c92b0a;p=xmlgraphics-fop.git FIX: Finally maybe fix the count thing git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@193308 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/org/apache/fop/pdf/PDFPages.java b/src/org/apache/fop/pdf/PDFPages.java index 4e4b29c67..7453f6be3 100644 --- a/src/org/apache/fop/pdf/PDFPages.java +++ b/src/org/apache/fop/pdf/PDFPages.java @@ -88,8 +88,10 @@ public class PDFPages extends PDFObject { * @param page the PDFPage to add. */ public void addPage(PDFPage page) { + this.count++; this.kids.addElement(page); page.setParent(this); + this.incrementCount(); } /** @@ -101,6 +103,14 @@ public class PDFPages extends PDFObject { return this.count; } + /** + * increment the count of /Page objects + */ + public void incrementCount() { + this.count++; + // System.out.println("Incrementing count to " + this.getCount()); + } + /** * represent the object in PDF *