#38 Circular reference cloning a "B" object

closed-fixed
None
5
2013-01-03
2012-06-17
Joel
No

I got a circular reference when copying pages from a file. The problem was in this procedure of documents/page.cs:

public override object Clone(Document context)

For the moment, I solved it excluding PdfName.B of cloning:

// Is the entry unwanted?
if (key.Equals(PdfName.Parent)
|| key.Equals(PdfName.Annots)
|| key.Equals(PdfName.B)) // Line added to avoid circular reference
continue;

Discussion

    • assigned_to: nobody --> stechio
    • status: open --> closed-fixed