X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b657d5dbeecef5aa8470a0addbf744606b102d49..007bea23c3245bac82c24c0f783a7baa5ac672cc:/src/mac/listbox.cpp diff --git a/src/mac/listbox.cpp b/src/mac/listbox.cpp index d5c590caeb..b72970b0c2 100644 --- a/src/mac/listbox.cpp +++ b/src/mac/listbox.cpp @@ -137,7 +137,7 @@ static pascal void wxMacListDefinition( short message, Boolean isSelected, Rect } #else { - wxCharBuffer text = wxMacStringToCString( linetext ) ; + wxCharBuffer text = linetext.mb_str( wxConvLocal) ; MoveTo(drawRect->left + 4 , drawRect->top + 10 ); DrawText(text, 0 , strlen(text) ); } @@ -633,8 +633,7 @@ wxSize wxListBox::DoGetBestSize() const &baseline ); wLine = bounds.h ; #else - wxCharBuffer text = wxMacStringToCString( str ) ; - wLine = ::TextWidth( text , 0 , strlen(text) ) ; + wLine = ::TextWidth( str.c_str() , 0 , str.Length() ) ; #endif lbWidth = wxMax(lbWidth, wLine); }