From dff1625b7dc47aad34e490924fbbe58cb0917d5d Mon Sep 17 00:00:00 2001 From: =?utf8?q?V=C3=A1clav=20Slav=C3=ADk?= Date: Mon, 14 May 2007 16:45:31 +0000 Subject: [PATCH] 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 --- src/common/fontmgrcmn.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; -- 2.45.2