From c2eb89388ebce68074881c55dc37f3caa0305f47 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Wed, 14 Jul 2010 14:52:23 +0000 Subject: [PATCH] Use correct format specifiers in wxOSX/Carbon font caching code. The specifiers used didn't match the actual argument types resulting in the asserts from the new wxPrintf() code. Correct them to match the real types. Closes #12186. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64965 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/osx/carbon/font.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/osx/carbon/font.cpp b/src/osx/carbon/font.cpp index dd3d6d4222..2d0ae842e2 100644 --- a/src/osx/carbon/font.cpp +++ b/src/osx/carbon/font.cpp @@ -477,7 +477,7 @@ void wxFontRefData::MacFindFont() traits |= kCTFontItalicTrait; // use font caching - wxString lookupnameWithSize = wxString::Format( "%s_%ld_%ld", m_info.m_faceName.c_str(), traits, m_info.m_pointSize ); + wxString lookupnameWithSize = wxString::Format( "%s_%u_%d", m_info.m_faceName, traits, m_info.m_pointSize ); static std::map< std::wstring , wxCFRef< CTFontRef > > fontcache ; m_ctFont = fontcache[ std::wstring(lookupnameWithSize.wc_str()) ]; -- 2.45.2