X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/7360894949ff89740d023dc587be5aa31f5be693..56d74412d9bc8d61c389ddb3919f2a03e610a376:/src/motif/font.cpp diff --git a/src/motif/font.cpp b/src/motif/font.cpp index e96103c124..7a1247c2b7 100644 --- a/src/motif/font.cpp +++ b/src/motif/font.cpp @@ -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;