Compilation fix for wxUSE_FONTENUM==0 case.
Fix another error in minimal wxGTK buildbot build. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64944 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -258,11 +258,13 @@ wxFont wxSystemSettingsNative::GetFont( wxSystemFont index )
|
|||||||
info.description = ButtonStyle()->font_desc;
|
info.description = ButtonStyle()->font_desc;
|
||||||
gs_fontSystem = wxFont(info);
|
gs_fontSystem = wxFont(info);
|
||||||
|
|
||||||
|
#if wxUSE_FONTENUM
|
||||||
// (try to) heal the default font (on some common systems e.g. Ubuntu
|
// (try to) heal the default font (on some common systems e.g. Ubuntu
|
||||||
// it's "Sans Serif" but the real font is called "Sans"):
|
// it's "Sans Serif" but the real font is called "Sans"):
|
||||||
if (!wxFontEnumerator::IsValidFacename(gs_fontSystem.GetFaceName()) &&
|
if (!wxFontEnumerator::IsValidFacename(gs_fontSystem.GetFaceName()) &&
|
||||||
gs_fontSystem.GetFaceName() == "Sans Serif")
|
gs_fontSystem.GetFaceName() == "Sans Serif")
|
||||||
gs_fontSystem.SetFaceName("Sans");
|
gs_fontSystem.SetFaceName("Sans");
|
||||||
|
#endif // wxUSE_FONTENUM
|
||||||
|
|
||||||
info.description = NULL;
|
info.description = NULL;
|
||||||
}
|
}
|
||||||
@@ -273,7 +275,7 @@ wxFont wxSystemSettingsNative::GetFont( wxSystemFont index )
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
wxASSERT(font.IsOk() && wxFontEnumerator::IsValidFacename(font.GetFaceName()));
|
wxASSERT( font.IsOk() );
|
||||||
|
|
||||||
return font;
|
return font;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user