]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/checkbox.cpp
compilation fix for gcc4 (patch 1428840)
[wxWidgets.git] / src / msw / checkbox.cpp
index cd9dd38df8b3385a730953902ac946c0d6b9419e..32cfc4e50ee82e1e7026fba26ceb99d76ab4d993 100644 (file)
@@ -214,7 +214,7 @@ wxSize wxCheckBox::DoGetBestSize() const
     int wCheckbox, hCheckbox;
     if ( !str.IsEmpty() )
     {
-        GetTextExtent(str, &wCheckbox, &hCheckbox);
+        GetTextExtent(wxStripMenuCodes(str), &wCheckbox, &hCheckbox);
         wCheckbox += s_checkSize + GetCharWidth();
 
         if ( hCheckbox < s_checkSize )