Share

Report.NET

Tracker: Patches

5 PDF_IndirectObjectPage.cs dictionary key error - ID: 2195765
Last Update: Attachment added ( ebish )

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;

}

}


Eric Bishop ( ebish ) - 2008-10-26 00:16

5

Open

None

Nobody/Anonymous

None

None

Public


Comments

No follow-up comments have been posted.

Attached File ( 1 )

Filename Description Download
PdfIndirectObject.cs PDF_IndirectObject.cs - fix dictionary key error Download

Change ( 1 )

Field Old Value Date By
File Added 298932: PdfIndirectObject.cs 2008-10-26 00:16 ebish