Don't reset the view controls state just because we are setting the already active tool state again
(cherry picked from commit 132ecee665
)
Co-authored-by: Marek Roszko <mark.roszko@gmail.com>
This commit is contained in:
parent
a1cd73e730
commit
e914c0c1a0
|
@ -1229,6 +1229,9 @@ bool TOOL_MANAGER::processEvent( const TOOL_EVENT& aEvent )
|
|||
|
||||
void TOOL_MANAGER::setActiveState( TOOL_STATE* aState )
|
||||
{
|
||||
if( m_activeState == aState )
|
||||
return;
|
||||
|
||||
if( m_activeState && m_viewControls )
|
||||
saveViewControls( m_activeState );
|
||||
|
||||
|
|
Loading…
Reference in New Issue