#endif
#include "wx/osx/private.h"
+#include "wx/fontenum.h"
// ----------------------------------------------------------------------------
// wxSystemSettingsNative
break ;
}
+ //wxASSERT(resultColor.IsOk());
+
return resultColor;
}
wxFont wxSystemSettingsNative::GetFont(wxSystemFont index)
{
+ wxFont font;
+
switch (index)
{
case wxSYS_ANSI_VAR_FONT :
case wxSYS_SYSTEM_FONT :
case wxSYS_DEVICE_DEFAULT_FONT :
case wxSYS_DEFAULT_GUI_FONT :
- return *wxSMALL_FONT ;
+ font = *wxSMALL_FONT ;
break ;
default :
+ font = *wxNORMAL_FONT ;
break ;
}
- return *wxNORMAL_FONT;
+ //wxASSERT(font.IsOk() && wxFontEnumerator::IsValidFacename(font.GetFaceName()));
+
+ return font;
}
// ----------------------------------------------------------------------------