From 225b03d702a6a82e6c1230ed94a04a2d165070a7 Mon Sep 17 00:00:00 2001 From: Seth Hillbrand Date: Sun, 31 Jul 2022 20:01:55 -0700 Subject: [PATCH] Move sheetpins by their connection point Need to calculate the sheet pin anchor position in order to get it aligned to the grid while moving Fixes https://gitlab.com/kicad/code/kicad/issues/12134 --- eeschema/tools/ee_grid_helper.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/eeschema/tools/ee_grid_helper.cpp b/eeschema/tools/ee_grid_helper.cpp index 33a30156f1..19cd2289f5 100644 --- a/eeschema/tools/ee_grid_helper.cpp +++ b/eeschema/tools/ee_grid_helper.cpp @@ -296,6 +296,7 @@ void EE_GRID_HELPER::computeAnchors( SCH_ITEM *aItem, const VECTOR2I &aRefPos, b case SCH_LABEL_T: case SCH_DIRECTIVE_LABEL_T: case SCH_BUS_WIRE_ENTRY_T: + case SCH_SHEET_PIN_T: { std::vector pts = aItem->GetConnectionPoints();