X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ca1b8c11692068939a6153b6460f598d46399417..a45d2855c6882edc830777de2cec9ac21caced61:/src/msw/checkbox.cpp diff --git a/src/msw/checkbox.cpp b/src/msw/checkbox.cpp index 07cc434de2..32cfc4e50e 100644 --- a/src/msw/checkbox.cpp +++ b/src/msw/checkbox.cpp @@ -17,10 +17,6 @@ // headers // ---------------------------------------------------------------------------- -#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) - #pragma implementation "checkbox.h" -#endif - // For compilers that support precompilation, includes "wx.h". #include "wx/wxprec.h" @@ -218,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 )