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:
Vadim Zeitlin 2009-08-05 17:24:32 +00:00
parent c7f171ed4d
commit b7081ff84f

View File

@ -291,7 +291,12 @@ wxFont wxSystemSettingsNative::GetFont(wxSystemFont index)
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;
#endif // __WXWINCE__/!__WXWINCE__
}