Fix a bug created by commit ea0edaba
.
This commit is contained in:
parent
ea0edaba21
commit
39c830435c
|
@ -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 );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue