Allow invoking GAL tools, only if GAL is active.

This commit is contained in:
Maciej Suminski 2013-09-02 16:44:13 +02:00
parent ee3f47ae51
commit f4ec1e729e
1 changed files with 1 additions and 1 deletions

View File

@ -269,6 +269,6 @@ void TOOL_DISPATCHER::DispatchWxCommand( wxCommandEvent &aEvent )
break;
}
if( activateTool )
if( activateTool && m_editFrame->IsGalCanvasActive() )
m_toolMgr->InvokeTool( toolName );
}