Fix crash caused by last change

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38000 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
2006-03-11 14:49:23 +00:00
parent c4709ea55c
commit 32ceccf56f

View File

@@ -651,12 +651,6 @@ bool wxToolBar::PerformAction(const wxControlAction& action,
PerformAction( wxACTION_BUTTON_CLICK, numArg ); PerformAction( wxACTION_BUTTON_CLICK, numArg );
// Write by Danny Raynor to change state again. // Write by Danny Raynor to change state again.
if( tool->IsToggled() )
{
// Change toggle state to false
tool->Toggle(false);
}
// Check button still pressed or not // Check button still pressed or not
if( tool->IsInverted() ) if( tool->IsInverted() )
{ {