From 132ecee665834d01670acbbf6fd41eee22e555bf Mon Sep 17 00:00:00 2001 From: Marek Roszko <mark.roszko@gmail.com> Date: Thu, 23 May 2024 22:23:34 -0400 Subject: [PATCH] Don't reset the view controls state just because we are setting the already active tool state again --- common/tool/tool_manager.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/common/tool/tool_manager.cpp b/common/tool/tool_manager.cpp index 510c934ae4..39df94cc09 100644 --- a/common/tool/tool_manager.cpp +++ b/common/tool/tool_manager.cpp @@ -1230,6 +1230,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 );