git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60675
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
void SettingsTestCase::GlobalFonts()
{
- wxFont font[] =
+ const wxFont font[] =
{
*wxNORMAL_FONT,
*wxSMALL_FONT,
};
for (unsigned int i=0; i < WXSIZEOF(font); i++)
- CPPUNIT_ASSERT( font[i].IsOk() &&
- wxFontEnumerator::IsValidFacename(font[i].GetFaceName()) );
+ {
+ CPPUNIT_ASSERT( font[i].IsOk() );
+
+ const wxString facename = font[i].GetFaceName();
+ if ( !facename.empty() )
+ CPPUNIT_ASSERT( wxFontEnumerator::IsValidFacename(facename) );
+ }
}
void SettingsTestCase::GlobalBrushes()