X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0f442030c49fd83eea24a332f286bcbbf4c4055c..cbf656555e872684a74eb0badffe1aa33bedf95d:/src/generic/tbarsmpl.cpp diff --git a/src/generic/tbarsmpl.cpp b/src/generic/tbarsmpl.cpp index 33d0dfeb9f..99248be4c5 100644 --- a/src/generic/tbarsmpl.cpp +++ b/src/generic/tbarsmpl.cpp @@ -682,7 +682,8 @@ void wxToolBarSimple::SpringUpButton(int id) if ( tool && tool->CanBeToggled() ) { - tool->Toggle(); + if (tool->IsToggled()) + tool->Toggle(); DrawTool(tool); }