X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d997c6118c9727ab5a6e2f6f0e2be14bab09f8dc..507abc7b3af8d73e7caf05261d1f40b51775ae7a:/src/msw/stattext.cpp?ds=sidebyside diff --git a/src/msw/stattext.cpp b/src/msw/stattext.cpp index 0ea485b4f7..20ae8b9c92 100644 --- a/src/msw/stattext.cpp +++ b/src/msw/stattext.cpp @@ -18,6 +18,8 @@ #if wxUSE_STATTEXT +#include "wx/stattext.h" + #ifndef WX_PRECOMP #include "wx/event.h" #include "wx/app.h" @@ -26,7 +28,6 @@ #include "wx/settings.h" #endif -#include "wx/stattext.h" #include "wx/msw/private.h" #if wxUSE_EXTENDED_RTTI @@ -135,8 +136,7 @@ wxSize wxStaticText::DoGetBestSize() const dc.SetFont(font); wxCoord widthTextMax, heightTextTotal; - dc.GetMultiLineTextExtent(::wxStripMenuCodes(GetLabel()), - &widthTextMax, &heightTextTotal); + dc.GetMultiLineTextExtent(GetLabelText(), &widthTextMax, &heightTextTotal); #ifdef __WXWINCE__ if ( widthTextMax )