colSys = ::GetSysColor(index);
#endif
}
-
+
wxColour ret = wxRGBToColour(colSys);
wxASSERT(ret.IsOk());
return ret;
gs_fontDefault = new wxFont(wxCreateFontFromStockObject(SYSTEM_FONT));
}
- wxASSERT(gs_fontDefault->IsOk() &&
+ wxASSERT(gs_fontDefault->IsOk() &&
wxFontEnumerator::IsValidFacename(gs_fontDefault->GetFaceName()));
return *gs_fontDefault;
#else // !__WXWINCE__
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__
}