Don't reset the view controls state just because we are setting the already active tool state again

This commit is contained in:
Marek Roszko 2024-05-23 22:23:34 -04:00
parent 032b5a6d65
commit 132ecee665
1 changed files with 3 additions and 0 deletions

View File

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