diff --git a/src/msw/radiobox.cpp b/src/msw/radiobox.cpp index 43a69bbc3e..c0b93032a7 100644 --- a/src/msw/radiobox.cpp +++ b/src/msw/radiobox.cpp @@ -586,10 +586,9 @@ wxSize wxRadioBox::GetTotalButtonSize(const wxSize& sizeBtn) const reinterpret_cast(const_cast(this))).y / 2; // and also wide enough for its label - int widthLabel; - GetTextExtent(GetLabelText(), &widthLabel, NULL); - if ( widthLabel > width ) - width = widthLabel; + int widthBox = wxStaticBox::DoGetBestSize().x; + if ( widthBox > width ) + width = widthBox; return wxSize(width, height); }