Added missing wxUSE_FONTENUM check.
Closes #11071. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61610 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -291,7 +291,12 @@ wxFont wxSystemSettingsNative::GetFont(wxSystemFont index)
|
|||||||
gs_fontDefault = new wxFont(font);
|
gs_fontDefault = new wxFont(font);
|
||||||
}
|
}
|
||||||
|
|
||||||
wxASSERT(font.IsOk() && wxFontEnumerator::IsValidFacename(font.GetFaceName()));
|
wxASSERT(font.IsOk());
|
||||||
|
|
||||||
|
#if wxUSE_FONTENUM
|
||||||
|
wxASSERT(wxFontEnumerator::IsValidFacename(font.GetFaceName()));
|
||||||
|
#endif // wxUSE_FONTENUM
|
||||||
|
|
||||||
return font;
|
return font;
|
||||||
#endif // __WXWINCE__/!__WXWINCE__
|
#endif // __WXWINCE__/!__WXWINCE__
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user