]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/stattext.cpp
Commit Carsten Fuchs' patch for separating wxGLCanvas
[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 )