]> git.saurik.com Git - wxWidgets.git/commitdiff
[ 1469227 ] wxUniv patch for toolbar button.
authorWłodzimierz Skiba <abx@abx.art.pl>
Mon, 22 May 2006 12:03:27 +0000 (12:03 +0000)
committerWłodzimierz Skiba <abx@abx.art.pl>
Mon, 22 May 2006 12:03:27 +0000 (12:03 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39266 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/univ/toolbar.cpp

index 59891ba4ae2f35fa2220fb5ca916a4121b3f2411..644763e88872a81968c3a205352b53111b879c77 100644 (file)
@@ -653,6 +653,11 @@ bool wxToolBar::PerformAction(const wxControlAction& action,
 
         // Write by Danny Raynor to change state again.
         // Check button still pressed or not
+        if ( tool->CanBeToggled() && tool->IsToggled() )
+        {
+            tool->Toggle(false);
+        }
+
         if( tool->IsInverted() )
         {
             PerformAction( wxACTION_TOOLBAR_RELEASE, numArg );