From 2f730cad812e80dc8177164b14d84f7d2f119592 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomasz=20W=C5=82ostowski?= Date: Tue, 14 Mar 2017 10:54:22 +0100 Subject: [PATCH] EDIT_TOOL: restore cursor position on exit Fixes: lp:1671564 * https://bugs.launchpad.net/kicad/+bug/1671564 --- pcbnew/tools/edit_tool.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pcbnew/tools/edit_tool.cpp b/pcbnew/tools/edit_tool.cpp index 932065ca45..f6de280694 100644 --- a/pcbnew/tools/edit_tool.cpp +++ b/pcbnew/tools/edit_tool.cpp @@ -421,6 +421,11 @@ int EDIT_TOOL::Main( const TOOL_EVENT& aEvent ) } } 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_offset.x = 0; m_offset.y = 0;