applied patch #1348053 "[msw] Strip mnemonics when calc best size for static text"

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36186 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Dimitri Schoolwerth 2005-11-16 12:06:54 +00:00
parent 0f99ce3d75
commit d997c6118c

View File

@ -135,7 +135,8 @@ wxSize wxStaticText::DoGetBestSize() const
dc.SetFont(font);
wxCoord widthTextMax, heightTextTotal;
dc.GetMultiLineTextExtent(GetLabel(), &widthTextMax, &heightTextTotal);
dc.GetMultiLineTextExtent(::wxStripMenuCodes(GetLabel()),
&widthTextMax, &heightTextTotal);
#ifdef __WXWINCE__
if ( widthTextMax )