From: Vadim Zeitlin Date: Wed, 15 Aug 2007 13:13:43 +0000 (+0000) Subject: don't enable previously checked button in a radio group (patch 1767481) X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/0b62d38796ab64590e9aa247614ffc15196e074d don't enable previously checked button in a radio group (patch 1767481) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48098 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/msw/tbar95.cpp b/src/msw/tbar95.cpp index 86b92ac035..7966a6cd19 100644 --- a/src/msw/tbar95.cpp +++ b/src/msw/tbar95.cpp @@ -940,7 +940,7 @@ bool wxToolBar::Realize() DoToggleTool(tool, true); } } - else if (tool->IsToggled()) + else if ( tool->IsToggled() ) { wxToolBarToolsList::compatibility_iterator nodePrev = node->GetPrevious(); int prevIndex = i - 1; @@ -954,7 +954,7 @@ bool wxToolBar::Realize() if ( tool->Toggle(false) ) DoToggleTool(tool, false); - prevButton.fsState = TBSTATE_ENABLED; + prevButton.fsState &= TBSTATE_CHECKED; nodePrev = nodePrev->GetPrevious(); prevIndex--; }