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
This commit is contained in:
Seth Hillbrand 2022-07-31 20:01:55 -07:00
parent 4074409890
commit 225b03d702
1 changed files with 1 additions and 0 deletions

View File

@ -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<VECTOR2I> pts = aItem->GetConnectionPoints();