From b7081ff84f440249ead9c217d8ed5ec53e4b824c Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Wed, 5 Aug 2009 17:24:32 +0000 Subject: [PATCH] Added missing wxUSE_FONTENUM check. Closes #11071. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61610 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/msw/settings.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/msw/settings.cpp b/src/msw/settings.cpp index 9925692052..0092138732 100644 --- a/src/msw/settings.cpp +++ b/src/msw/settings.cpp @@ -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__ } -- 2.49.0