From: Julian Smart Date: Tue, 11 Jun 2002 22:07:38 +0000 (+0000) Subject: Initialise font family when initializing from native font, since this X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/93692400d0a9f89cf013e1e101701eae0a541a59 Initialise font family when initializing from native font, since this is otherwise uninitialised (the font family is taken from the ref data and not the native font data). git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15801 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/msw/font.cpp b/src/msw/font.cpp index 25ff0295e3..918e7c06d2 100644 --- a/src/msw/font.cpp +++ b/src/msw/font.cpp @@ -281,6 +281,9 @@ void wxFontRefData::Init(const wxNativeFontInfo& info, WXHFONT hFont) m_nativeFontInfoOk = TRUE; m_nativeFontInfo = info; + // This is the best we can do since we don't have the + // correct information at this point. + m_family = wxSWISS; } wxFontRefData::~wxFontRefData()