X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/99c613c5c48b1a251e8421ef93fa823c77b692df..07225d48b60f88c78dd643bc7c984c3930db3544:/src/msw/radiobox.cpp diff --git a/src/msw/radiobox.cpp b/src/msw/radiobox.cpp index 0fba4670c0..795df4f865 100644 --- a/src/msw/radiobox.cpp +++ b/src/msw/radiobox.cpp @@ -478,7 +478,7 @@ wxSize wxRadioBox::GetTotalButtonSize(const wxSize& sizeBtn) const // and also wide enough for its label int widthLabel; - GetTextExtent(GetLabel(), &widthLabel, NULL); + GetTextExtent(wxStripMenuCodes(GetLabel()), &widthLabel, NULL); widthLabel += RADIO_SIZE; // FIXME this is bogus too if ( widthLabel > width ) width = widthLabel;