X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/98c9fc2d06dccf3c5792a99e55d1a7035a5cd67e..fa1c12bdd76acc21ddb45b90bb53b2f58aed946d:/src/motif/font.cpp diff --git a/src/motif/font.cpp b/src/motif/font.cpp index d81184b0d1..a032dd8775 100644 --- a/src/motif/font.cpp +++ b/src/motif/font.cpp @@ -1,5 +1,5 @@ ///////////////////////////////////////////////////////////////////////////// -// Name: font.cpp +// Name: src/motif/font.cpp // Purpose: wxFont class // Author: Julian Smart // Modified by: @@ -186,7 +186,7 @@ wxFontRefData::~wxFontRefData() // wxFont // ---------------------------------------------------------------------------- -wxFont(const wxNativeFontInfo& info) +wxFont::wxFont(const wxNativeFontInfo& info) { Init(); @@ -196,8 +196,6 @@ wxFont(const wxNativeFontInfo& info) void wxFont::Init() { - if ( wxTheFontList ) - wxTheFontList->Append(this); } bool wxFont::Create(int pointSize, @@ -219,8 +217,6 @@ bool wxFont::Create(int pointSize, wxFont::~wxFont() { - if ( wxTheFontList ) - wxTheFontList->DeleteObject(this); } // ---------------------------------------------------------------------------- @@ -412,3 +408,4 @@ WXFontList wxFont::GetFontList(double scale, WXDisplay* display) const return (f ? f->m_fontList : (WXFontList) 0); } +