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:
parent
0f99ce3d75
commit
d997c6118c
@ -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 )
|
||||
|
Loading…
Reference in New Issue
Block a user