From e9bc7b58ccf3e9c917501e95e8d467bdc20e8645 Mon Sep 17 00:00:00 2001 From: Tomasz Wlostowski Date: Wed, 11 Mar 2015 18:06:44 +0100 Subject: [PATCH] Snap cursor to pad center when moving (GAL footprint editor). --- pcbnew/tools/grid_helper.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/pcbnew/tools/grid_helper.cpp b/pcbnew/tools/grid_helper.cpp index c141d16aaa..2eb1d0b3cd 100644 --- a/pcbnew/tools/grid_helper.cpp +++ b/pcbnew/tools/grid_helper.cpp @@ -219,6 +219,15 @@ void GRID_HELPER::computeAnchors( BOARD_ITEM* aItem, const VECTOR2I& aRefPos ) break; } + + case PCB_PAD_T: + { + D_PAD* pad = static_cast( aItem ); + addAnchor( pad->GetPosition(), CORNER | SNAPPABLE, pad ); + + break; + } + case PCB_MODULE_EDGE_T: case PCB_LINE_T: {