adding an assert for invalid fonts

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39211 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Csomor 2006-05-18 14:43:54 +00:00
parent 6a82a0d041
commit 45d5159fa4

View File

@ -269,6 +269,7 @@ void wxFontRefData::MacFindFont()
{
wxMacCFStringHolder cf( m_faceName, wxLocale::GetSystemEncoding() );
ATSFontFamilyRef atsfamily = ATSFontFamilyFindFromName( cf , kATSOptionFlagsDefault );
wxASSERT_MSG( atsfamily != (ATSFontFamilyRef) -1 , wxT("ATSFontFamilyFindFromName failed") );
m_macFontFamily = FMGetFontFamilyFromATSFontFamilyRef( atsfamily );
}
}