]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Clear parent if later on an object number is assigned to a PDFObject which means...
authorJeremias Maerki <jeremias@apache.org>
Mon, 14 Jan 2008 11:02:54 +0000 (11:02 +0000)
committerJeremias Maerki <jeremias@apache.org>
Mon, 14 Jan 2008 11:02:54 +0000 (11:02 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@611768 13f79535-47bb-0310-9956-ffa450edef68

src/java/org/apache/fop/pdf/PDFObject.java

index 4bfd805f4f843ed6f6708fdc31700aee0a3002b6..f791791b7735657e5bcee75005d41c8edddfa797 100644 (file)
@@ -102,6 +102,7 @@ public abstract class PDFObject implements PDFWritable {
      */
     public void setObjectNumber(int objnum) {
         this.objnum = objnum;
+        setParent(null);
         if (log.isTraceEnabled()) {
             log.trace("Assigning " + this + " object number " + objnum);
         }