Do not store 'force cursor position' setting in VIEW_CONTROLS::SETTINGS

Fixes: lp:1678875
* https://bugs.launchpad.net/kicad/+bug/1678875
This commit is contained in:
Maciej Suminski 2017-04-04 00:56:30 +02:00
parent 1f3fe6fefb
commit bf590780b8
2 changed files with 4 additions and 1 deletions

View File

@ -704,6 +704,7 @@ TOOL_MANAGER::ID_LIST::iterator TOOL_MANAGER::finishTool( TOOL_STATE* aState )
// Set transitions to be ready for future TOOL_EVENTs
aState->theTool->SetTransitions();
m_viewControls->ForceCursorPosition( false );
return it;
}

View File

@ -78,5 +78,7 @@ void VIEW_CONTROLS::ApplySettings( const VC_SETTINGS& aSettings )
SetAutoPan( aSettings.m_autoPanEnabled );
SetAutoPanMargin( aSettings.m_autoPanMargin );
SetAutoPanSpeed( aSettings.m_autoPanSpeed );
ForceCursorPosition( aSettings.m_forceCursorPosition, aSettings.m_forcedPosition );
// storing 'force cursor position' causes more harm than advantage
// let the tools control this setting
//ForceCursorPosition( aSettings.m_forceCursorPosition, aSettings.m_forcedPosition );
}