Applied patch by Johan van Zyl

[ 1231710 ] wxGrid slow refresh on motif caused by memory leak


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34809 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Mattia Barbon 2005-07-03 22:34:31 +00:00
parent fa41b170a3
commit 8c4c354377

View File

@ -556,9 +556,11 @@ wxXFont* wxFont::GetInternalFont(double scale, WXDisplay* display) const
f->m_fontStruct = (WXFontStructPtr)font;
f->m_display = ( display ? display : wxGetDisplay() );
f->m_scale = intScale;
M_FONTDATA->m_fonts.Append(f);
#if !wxUSE_RENDER_TABLE
f->m_fontList = XmFontListCreate ((XFontStruct*) font, XmSTRING_DEFAULT_CHARSET);
M_FONTDATA->m_fonts.Append(f);
#else // if wxUSE_RENDER_TABLE
XmRendition rendition;
XmRenderTable renderTable;