fixed too restrictive assert: fonts matching is case-insensitive

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46019 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Václav Slavík
2007-05-14 16:45:31 +00:00
parent 4427147544
commit dff1625b7d

View File

@@ -110,7 +110,8 @@ wxFontFace *wxFontBundleBase::GetFace(FaceType type) const
wxFontFace *
wxFontBundleBase::GetFaceForFont(const wxFontMgrFontRefData& font) const
{
wxASSERT_MSG( font.GetFaceName().empty() || font.GetFaceName() == GetName(),
wxASSERT_MSG( font.GetFaceName().empty() ||
GetName().CmpNoCase(font.GetFaceName()) == 0,
_T("calling GetFaceForFont for incompatible font") );
int type = FaceType_Regular;