X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/76b49cf49ba9ee9f3eeec9730cb4bc4569ab17f1..6ef708cde1abee1bfad2bc4de5cc073ed0365f74:/src/univ/toolbar.cpp diff --git a/src/univ/toolbar.cpp b/src/univ/toolbar.cpp index 59891ba4ae..644763e888 100644 --- a/src/univ/toolbar.cpp +++ b/src/univ/toolbar.cpp @@ -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 );