From f818f3a44516ad2f423a05fdd952e6147aeb43c1 Mon Sep 17 00:00:00 2001 From: aris-kimi Date: Wed, 5 Oct 2022 22:01:55 +0300 Subject: [PATCH] Fix footprint rule and zone area anchors Fixes: https://gitlab.com/kicad/code/kicad/-/issues/12575 --- pcbnew/tools/pcb_grid_helper.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pcbnew/tools/pcb_grid_helper.cpp b/pcbnew/tools/pcb_grid_helper.cpp index d0fd0b2e96..21407b4e7a 100644 --- a/pcbnew/tools/pcb_grid_helper.cpp +++ b/pcbnew/tools/pcb_grid_helper.cpp @@ -696,7 +696,7 @@ void PCB_GRID_HELPER::computeAnchors( BOARD_ITEM* aItem, const VECTOR2I& aRefPos for( auto iter = outline->CIterateWithHoles(); iter; iter++ ) { - addAnchor( *iter, CORNER, aItem ); + addAnchor( *iter, CORNER | SNAPPABLE, aItem ); lc.Append( *iter ); } @@ -714,7 +714,7 @@ void PCB_GRID_HELPER::computeAnchors( BOARD_ITEM* aItem, const VECTOR2I& aRefPos for( auto iter = outline->CIterateWithHoles(); iter; iter++ ) { - addAnchor( *iter, CORNER, aItem ); + addAnchor( *iter, CORNER | SNAPPABLE, aItem ); lc.Append( *iter ); }