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:
parent
6a82a0d041
commit
45d5159fa4
@ -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 );
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user