#include "wx/utils.h"
#include "wx/app.h"
#include "wx/log.h"
+ #include "wx/frame.h"
#endif
#include "wx/univ/renderer.h"
-#include "wx/frame.h"
#include "wx/image.h"
// ----------------------------------------------------------------------------
// 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 );