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:
Mark Roszko 2024-05-24 02:49:27 +00:00
parent a1cd73e730
commit e914c0c1a0
1 changed files with 3 additions and 0 deletions

View File

@ -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 );