]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/checkbox.cpp
Back to previous call with -1 replacement.
[wxWidgets.git] / src / msw / checkbox.cpp
index 8cbda8d72e70a5f01cfbc469a5c69c97bf5b9ff9..4a11fa5c469ebe02d04a9f29ed72661cc4610c07 100644 (file)
@@ -215,7 +215,7 @@ wxSize wxCheckBox::DoGetBestSize() const
     int wCheckbox, hCheckbox;
     if ( !str.empty() )
     {
     int wCheckbox, hCheckbox;
     if ( !str.empty() )
     {
-        GetTextExtent(wxStripMenuCodes(str), &wCheckbox, &hCheckbox);
+        GetTextExtent(GetLabelText(str), &wCheckbox, &hCheckbox);
         wCheckbox += s_checkSize + GetCharWidth();
 
         if ( hCheckbox < s_checkSize )
         wCheckbox += s_checkSize + GetCharWidth();
 
         if ( hCheckbox < s_checkSize )