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 202f7f9107
commit 7c745cd9c6
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 );
}