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
This commit is contained in:
Vadim Zeitlin
2007-08-15 13:13:43 +00:00
parent e660f922f6
commit 0b62d38796

View File

@@ -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--;
}