EDIT_TOOL: restore cursor position on exit

Fixes: lp:1671564
* https://bugs.launchpad.net/kicad/+bug/1671564
This commit is contained in:
Tomasz Włostowski 2017-03-14 10:54:22 +01:00
parent 679074fdb2
commit 2f730cad81
1 changed files with 5 additions and 0 deletions

View File

@ -421,6 +421,11 @@ int EDIT_TOOL::Main( const TOOL_EVENT& aEvent )
} }
} while( ( evt = Wait() ) ); //Should be assignment not equality test } while( ( evt = Wait() ) ); //Should be assignment not equality test
controls->ForceCursorPosition( false );
controls->ShowCursor( false );
controls->SetSnapping( false );
controls->SetAutoPan( false );
m_dragging = false; m_dragging = false;
m_offset.x = 0; m_offset.x = 0;
m_offset.y = 0; m_offset.y = 0;