From 88319139ed8592c04239133ff575a1d64d91930d Mon Sep 17 00:00:00 2001 From: Maciej Suminski Date: Wed, 9 Jul 2014 16:50:31 +0200 Subject: [PATCH] Dragged items offset is cleared when dragging is finished. --- 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 55db5259bb..9d6e646c96 100644 --- a/pcbnew/tools/edit_tool.cpp +++ b/pcbnew/tools/edit_tool.cpp @@ -65,6 +65,9 @@ bool EDIT_TOOL::Init() m_selectionTool->AddMenuItem( COMMON_ACTIONS::remove, SELECTION_CONDITIONS::NotEmpty ); m_selectionTool->AddMenuItem( COMMON_ACTIONS::properties, SELECTION_CONDITIONS::NotEmpty ); + m_offset.x = 0; + m_offset.y = 0; + setTransitions(); return true; @@ -186,6 +189,8 @@ int EDIT_TOOL::Main( TOOL_EVENT& aEvent ) } m_dragging = false; + m_offset.x = 0; + m_offset.y = 0; if( restore ) {