From 35c7974a96975189ba64bcb575c1b105ba220884 Mon Sep 17 00:00:00 2001 From: Maciej Suminski Date: Thu, 2 Mar 2017 15:21:28 +0100 Subject: [PATCH] Enable grid snapping when dragging items (GAL) Fixes: lp:1668077 * https://bugs.launchpad.net/kicad/+bug/1668077 --- pcbnew/tools/edit_tool.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pcbnew/tools/edit_tool.cpp b/pcbnew/tools/edit_tool.cpp index d999d0455c..4ced230be5 100644 --- a/pcbnew/tools/edit_tool.cpp +++ b/pcbnew/tools/edit_tool.cpp @@ -257,6 +257,8 @@ int EDIT_TOOL::Main( const TOOL_EVENT& aEvent ) bool lockOverride = false; controls->ShowCursor( true ); + controls->SetSnapping( true ); + controls->SetAutoPan( true ); // cumulative translation wxPoint totalMovement( 0, 0 );