Fixed assert problem due to radiobox being clicked.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_2_BRANCH@7278 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
2000-04-26 13:46:13 +00:00
parent 01e92d1232
commit f8cc27023e

View File

@@ -125,6 +125,9 @@ bool wxRadioBox::MSWCommand(WXUINT cmd, WXWORD id)
{ {
if ( cmd == BN_CLICKED ) if ( cmd == BN_CLICKED )
{ {
if (id == GetId())
return TRUE;
int selectedButton = -1; int selectedButton = -1;
for ( int i = 0; i < m_noItems; i++ ) for ( int i = 0; i < m_noItems; i++ )