From bcdd3d7bb98b967b1fccba874972ed7487c36e94 Mon Sep 17 00:00:00 2001 From: Maciej Suminski Date: Wed, 6 Aug 2014 09:35:03 +0200 Subject: [PATCH] Items are either dragged by their origin or moved by a vector (depending on the number of selected items) (GAL). --- pcbnew/tools/edit_tool.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pcbnew/tools/edit_tool.cpp b/pcbnew/tools/edit_tool.cpp index aefd8dd248..db852f6bfc 100644 --- a/pcbnew/tools/edit_tool.cpp +++ b/pcbnew/tools/edit_tool.cpp @@ -165,7 +165,7 @@ int EDIT_TOOL::Main( TOOL_EVENT& aEvent ) editFrame->OnModify(); editFrame->SaveCopyInUndoList( selection.items, UR_CHANGED ); - if( evt->Modifier( MD_CTRL ) ) + if( selection.Size() == 1 ) { // Set the current cursor position to the first dragged item origin, so the // movement vector could be computed later