]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/stattext.cpp
minimize overlay area to avoid eg scrolling artifacts when using a caret
[wxWidgets.git] / src / msw / stattext.cpp
index 1d93adb87b36f181fee1c27e8333bca7a419db4c..20ae8b9c920a4bd41290c13ffacdb2119db3ee39 100644 (file)
@@ -136,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 )