]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/tbarsmpl.cpp
For all platforms except WXMAC, the wxGIFDecoder::dgif function was
[wxWidgets.git] / src / generic / tbarsmpl.cpp
index 33d0dfeb9f42a34193399180107e77b5e0084f19..99248be4c5628c655ce18340da9c0d21f9ebee04 100644 (file)
@@ -682,7 +682,8 @@ void wxToolBarSimple::SpringUpButton(int id)
 
     if ( tool && tool->CanBeToggled() )
     {
-        tool->Toggle();
+        if (tool->IsToggled())
+            tool->Toggle();
 
         DrawTool(tool);
     }