Store forced cursor position in VC_SETTINGS

This commit is contained in:
Maciej Suminski 2017-08-02 15:29:45 +02:00
parent e8345dce51
commit ef22c2589d
2 changed files with 1 additions and 4 deletions

View File

@ -721,7 +721,6 @@ TOOL_MANAGER::ID_LIST::iterator TOOL_MANAGER::finishTool( TOOL_STATE* aState )
if( tool->GetType() == INTERACTIVE )
static_cast<TOOL_INTERACTIVE*>( tool )->resetTransitions();
m_viewControls->ForceCursorPosition( false );
return it;
}

View File

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