]> git.saurik.com Git - wxWidgets.git/commitdiff
Fix crash caused by last change
authorJulian Smart <julian@anthemion.co.uk>
Sat, 11 Mar 2006 14:49:23 +0000 (14:49 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Sat, 11 Mar 2006 14:49:23 +0000 (14:49 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38000 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/univ/toolbar.cpp

index a708a7cb743da6209cab52b352f88d5bb90879b6..66e6b2162339b7b6289de47e4ba525c071fc0ec1 100644 (file)
@@ -651,12 +651,6 @@ bool wxToolBar::PerformAction(const wxControlAction& action,
         PerformAction( wxACTION_BUTTON_CLICK, numArg );
                         
         // 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
         if( tool->IsInverted() )
         {