Fix a bug created by commit ea0edaba.

This commit is contained in:
jean-pierre charras 2019-07-06 14:48:53 +02:00
parent ea0edaba21
commit 39c830435c
2 changed files with 3 additions and 3 deletions

View File

@ -446,7 +446,7 @@ void TOOL_MANAGER::InitTools()
if( !tool->Init() ) if( !tool->Init() )
{ {
wxMessageBox( wxString::Format( "Initialization of tool \"%s\" failed", wxMessageBox( wxString::Format( "Initialization of tool \"%s\" failed",
tool->GetName() ) ); tool->GetName() ) );
// Unregister the tool // Unregister the tool
@ -462,7 +462,7 @@ void TOOL_MANAGER::InitTools()
} }
m_actionMgr->UpdateHotKeys( true ); m_actionMgr->UpdateHotKeys( true );
ResetTools( TOOL_BASE::RUN ); ResetTools( TOOL_BASE::RUN );
} }

View File

@ -300,7 +300,7 @@ public:
bool IsMouseAction() const bool IsMouseAction() const
{ {
return m_actions && TA_MOUSE; return ( m_actions & TA_MOUSE );
} }
bool IsCancel() const bool IsCancel() const