fixed font-matching bug in wxFontList::FindOrCreateFont for wxGTK when

font family is wxDEFAULT.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3082 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
1999-07-22 07:34:57 +00:00
parent 5d55595cb6
commit 619d05280a

View File

@@ -595,7 +595,12 @@ wxFont *wxFontList::
//#if defined(__X__)
// each_font->GetFontId () == FamilyOrFontId) /* New font system */
//#else
#if defined(__WXGTK__)
(each_font->GetFamily() == FamilyOrFontId ||
(each_font->GetFamily() == wxSWISS && FamilyOrFontId == wxDEFAULT)) &&
#else
each_font->GetFamily() == FamilyOrFontId &&
#endif
((each_font->GetFaceName() == _T("")) || each_font->GetFaceName() == Face))
//#endif
return each_font;