#endif
#include "wx/fontutil.h"
+#include "wx/fontenum.h"
// ----------------------------------------------------------------------------
// private classes
colSys = ::GetSysColor(index);
#endif
}
-
- return wxRGBToColour(colSys);
+
+ wxColour ret = wxRGBToColour(colSys);
+ wxASSERT(ret.IsOk());
+ return ret;
}
// ----------------------------------------------------------------------------
gs_fontDefault = new wxFont(wxCreateFontFromStockObject(SYSTEM_FONT));
}
+ wxASSERT(gs_fontDefault->IsOk() &&
+ wxFontEnumerator::IsValidFacename(gs_fontDefault->GetFaceName()));
return *gs_fontDefault;
#else // !__WXWINCE__
// wxWindow ctor calls GetFont(wxSYS_DEFAULT_GUI_FONT) so we're
gs_fontDefault = new wxFont(font);
}
+ wxASSERT(font.IsOk() && wxFontEnumerator::IsValidFacename(font.GetFaceName()));
return font;
#endif // __WXWINCE__/!__WXWINCE__
}