X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/427ff66291af2d8dd34ff5ee68c81436997144a1..83842a0ba326b22c6b930998a7f817e83ff7f7be:/src/mac/tooltip.cpp diff --git a/src/mac/tooltip.cpp b/src/mac/tooltip.cpp index bee14fc9fb..3334d6b70b 100644 --- a/src/mac/tooltip.cpp +++ b/src/mac/tooltip.cpp @@ -256,14 +256,13 @@ void wxMacToolTip::Draw() ::GetFontInfo(&fontInfo); short lineh = fontInfo.ascent + fontInfo.descent + fontInfo.leading; short height = 0 ; - // short width = TextWidth( m_label , 0 ,m_label.Length() ) ; int i = 0 ; int length = m_label.Length() ; int width = 0 ; int thiswidth = 0 ; int laststop = 0 ; - wxCharBuffer text = wxMacStringToCString( m_label ) ; + wxCharBuffer text = m_label.mb_str( wxConvLocal) ; while( i < length ) {