]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/radiobut.cpp
define UDM_{SETRANGE|SETPOS|GETPOS}32 if we don't have them in the headers to allow...
[wxWidgets.git] / src / msw / radiobut.cpp
index e41f4cc7c025a4741828a03ddabbc5411b601b45..42bbdc43e558bbcaa6cced7eeb8ca2fa4f6b52fa 100644 (file)
@@ -296,7 +296,7 @@ wxSize wxRadioButton::DoGetBestSize() const
     int wRadio, hRadio;
     if ( !str.empty() )
     {
-        GetTextExtent(str, &wRadio, &hRadio);
+        GetTextExtent(wxStripMenuCodes(str), &wRadio, &hRadio);
         wRadio += s_radioSize + GetCharWidth();
 
         if ( hRadio < s_radioSize )