Disable autopanning when starting certain tools

Tools preserve their state between runs, so it could happen that
activating a tool restores the state when autopanning is enabled, even
though it should not be.
This commit is contained in:
Maciej Suminski 2018-02-14 15:40:18 +01:00
parent 11d8b9ff55
commit 104b606ca9
2 changed files with 2 additions and 0 deletions

View File

@ -1149,6 +1149,7 @@ int EDIT_TOOL::MeasureTool( const TOOL_EVENT& aEvent )
controls.ShowCursor( true );
controls.SetSnapping( true );
controls.SetAutoPan( false );
while( auto evt = Wait() )
{

View File

@ -227,6 +227,7 @@ void POINT_EDITOR::Reset( RESET_REASON aReason )
{
m_editPoints.reset();
m_altConstraint.reset();
getViewControls()->SetAutoPan( false );
}