X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/bbd8f8af4925123462d37c6fe9fcbd971c55c2f5..12b5f4b4d2d8a07962da7ba3b78c8c1ec2634a67:/src/osx/radiobox_osx.cpp diff --git a/src/osx/radiobox_osx.cpp b/src/osx/radiobox_osx.cpp index f6dc751f75..4ba2abf019 100644 --- a/src/osx/radiobox_osx.cpp +++ b/src/osx/radiobox_osx.cpp @@ -52,7 +52,7 @@ wxRadioBox::wxRadioBox() wxRadioBox::~wxRadioBox() { - m_isBeingDeleted = true; + SendDestroyEvent(); wxRadioButton *next, *current; @@ -411,7 +411,7 @@ void wxRadioBox::DoSetSize(int x, int y, int width, int height, int sizeFlags) totWidth = GetColumnCount() * (maxWidth + charWidth); wxSize sz = DoGetSizeFromClientSize( wxSize( totWidth, totHeight ) ) ; - + // change the width / height only when specified if ( width == wxDefaultCoord ) { @@ -502,7 +502,7 @@ wxSize wxRadioBox::DoGetBestSize() const wxSize sz = DoGetSizeFromClientSize( wxSize( totWidth, totHeight ) ); totWidth = sz.x; totHeight = sz.y; - + // optimum size is an additional 5 pt border to all sides totWidth += 10; totHeight += 10;