don't enable previously checked button in a radio group (patch 1767481)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@48098 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2007-08-15 13:13:43 +00:00
parent 7cd001e79b
commit 62294caa47

View File

@@ -894,7 +894,7 @@ bool wxToolBar::Realize()
DoToggleTool(tool, true); DoToggleTool(tool, true);
} }
} }
else if (tool->IsToggled()) else if ( tool->IsToggled() )
{ {
wxToolBarToolsList::compatibility_iterator nodePrev = node->GetPrevious(); wxToolBarToolsList::compatibility_iterator nodePrev = node->GetPrevious();
int prevIndex = i - 1; int prevIndex = i - 1;
@@ -908,7 +908,7 @@ bool wxToolBar::Realize()
if ( tool->Toggle(false) ) if ( tool->Toggle(false) )
DoToggleTool(tool, false); DoToggleTool(tool, false);
prevButton.fsState = TBSTATE_ENABLED; prevButton.fsState &= TBSTATE_CHECKED;
nodePrev = nodePrev->GetPrevious(); nodePrev = nodePrev->GetPrevious();
prevIndex--; prevIndex--;
} }