From ef22c2589df9f89c07e299f5c797f8b290f6ddbe Mon Sep 17 00:00:00 2001 From: Maciej Suminski Date: Wed, 2 Aug 2017 15:29:45 +0200 Subject: [PATCH] Store forced cursor position in VC_SETTINGS --- common/tool/tool_manager.cpp | 1 - common/view/view_controls.cpp | 4 +--- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/common/tool/tool_manager.cpp b/common/tool/tool_manager.cpp index bfeee80f34..91da2319c7 100644 --- a/common/tool/tool_manager.cpp +++ b/common/tool/tool_manager.cpp @@ -721,7 +721,6 @@ TOOL_MANAGER::ID_LIST::iterator TOOL_MANAGER::finishTool( TOOL_STATE* aState ) if( tool->GetType() == INTERACTIVE ) static_cast( tool )->resetTransitions(); - m_viewControls->ForceCursorPosition( false ); return it; } diff --git a/common/view/view_controls.cpp b/common/view/view_controls.cpp index 7de46c3814..eedfd766eb 100644 --- a/common/view/view_controls.cpp +++ b/common/view/view_controls.cpp @@ -78,7 +78,5 @@ void VIEW_CONTROLS::ApplySettings( const VC_SETTINGS& aSettings ) SetAutoPan( aSettings.m_autoPanEnabled ); SetAutoPanMargin( aSettings.m_autoPanMargin ); SetAutoPanSpeed( aSettings.m_autoPanSpeed ); - // storing 'force cursor position' causes more harm than advantage - // let the tools control this setting - //ForceCursorPosition( aSettings.m_forceCursorPosition, aSettings.m_forcedPosition ); + ForceCursorPosition( aSettings.m_forceCursorPosition, aSettings.m_forcedPosition ); }