From f8cc27023e348c31300b9f6ad8fd6bce3d0f0d08 Mon Sep 17 00:00:00 2001 From: Julian Smart Date: Wed, 26 Apr 2000 13:46:13 +0000 Subject: [PATCH] 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 --- src/msw/radiobox.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/msw/radiobox.cpp b/src/msw/radiobox.cpp index 8197f63b70..69f78d9fd1 100644 --- a/src/msw/radiobox.cpp +++ b/src/msw/radiobox.cpp @@ -125,6 +125,9 @@ bool wxRadioBox::MSWCommand(WXUINT cmd, WXWORD id) { if ( cmd == BN_CLICKED ) { + if (id == GetId()) + return TRUE; + int selectedButton = -1; for ( int i = 0; i < m_noItems; i++ )