EDIT_TOOL: restore cursor position on exit
Fixes: lp:1671564 * https://bugs.launchpad.net/kicad/+bug/1671564
This commit is contained in:
parent
679074fdb2
commit
2f730cad81
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue