From: Václav Slavík Date: Mon, 14 May 2007 16:45:31 +0000 (+0000) Subject: fixed too restrictive assert: fonts matching is case-insensitive X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/dff1625b7dc47aad34e490924fbbe58cb0917d5d?ds=inline 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 --- diff --git a/src/common/fontmgrcmn.cpp b/src/common/fontmgrcmn.cpp index 6a5d0683ec..2c4c06c3b2 100644 --- a/src/common/fontmgrcmn.cpp +++ b/src/common/fontmgrcmn.cpp @@ -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;