X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8907154c1a8a6882c6797d1f16393ddfb23e7f3a..99cc862c0fd5fb21152854075808cf82a3a2025d:/src/msw/stattext.cpp diff --git a/src/msw/stattext.cpp b/src/msw/stattext.cpp index e881b3f838..0ea485b4f7 100644 --- a/src/msw/stattext.cpp +++ b/src/msw/stattext.cpp @@ -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 )