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
This commit is contained in:
Julian Smart 2002-06-11 22:07:38 +00:00
parent d1f2dc804c
commit 93692400d0

View File

@ -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()