From 6983f90b9f2864cd3bca2a46f4beb47eb1ed091e Mon Sep 17 00:00:00 2001 From: Maciej Suminski Date: Tue, 28 Jul 2015 10:28:59 +0200 Subject: [PATCH] Align cursor to the grid when dragging multiple items (GAL). --- pcbnew/tools/edit_tool.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pcbnew/tools/edit_tool.cpp b/pcbnew/tools/edit_tool.cpp index 4acd7cbe20..a3a74ec69b 100644 --- a/pcbnew/tools/edit_tool.cpp +++ b/pcbnew/tools/edit_tool.cpp @@ -232,6 +232,10 @@ int EDIT_TOOL::Main( const TOOL_EVENT& aEvent ) m_cursor = grid.BestDragOrigin( originalCursorPos, item ); grid.SetAuxAxes( true, m_cursor ); } + else + { + m_cursor = grid.Align( m_cursor ); + } controls->ForceCursorPosition( true, m_cursor ); controls->WarpCursor( m_cursor, true );