Commit 7e249c75 authored by Maciej Suminski's avatar Maciej Suminski

bugfix: Tools are deactivated on canvas switch.

parent 1df31338
...@@ -411,6 +411,9 @@ TOOL_BASE* TOOL_MANAGER::FindTool( const std::string& aName ) const ...@@ -411,6 +411,9 @@ TOOL_BASE* TOOL_MANAGER::FindTool( const std::string& aName ) const
void TOOL_MANAGER::ResetTools( TOOL_BASE::RESET_REASON aReason ) void TOOL_MANAGER::ResetTools( TOOL_BASE::RESET_REASON aReason )
{ {
TOOL_EVENT evt( TC_COMMAND, TA_ACTIVATE, "" ); // deactivate the active tool
ProcessEvent( evt );
BOOST_FOREACH( TOOL_BASE* tool, m_toolState | boost::adaptors::map_keys ) BOOST_FOREACH( TOOL_BASE* tool, m_toolState | boost::adaptors::map_keys )
tool->Reset( aReason ); tool->Reset( aReason );
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment