#4 PDF_IndirectObjectPage.cs dictionary key error

open
nobody
None
5
2008-10-26
2008-10-26
Eric Bishop
No

Modified RegisterFontData in PDF_IndirectObjectPage.cs as follows to stop a condition where a fontdata was already registered. It may be an issue with the way I am using report.net, but this fix cleared up my issues.

-----------------------------------------------------

internal void RegisterFontData(FontData fontData) {

PdfIndirectObject_Font pdfIndirectObject_Font = (PdfIndirectObject_Font)fontData.oFontDataX;

if (pdfIndirectObject_Font.pdfIndirectObject_Page != this)
{
if (!dict_FontData.ContainsKey(pdfIndirectObject_Font.sKey))

{
dict_FontData.Add(pdfIndirectObject_Font.sKey, fontData);
}

pdfIndirectObject_Font.pdfIndirectObject_Page = this;

}

}

Discussion

  • Eric Bishop
    Eric Bishop
    2008-10-26

    PDF_IndirectObject.cs - fix dictionary key error

     
    Attachments