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

(cherry picked from commit 225b03d702)
This commit is contained in:
Seth Hillbrand 2022-07-31 20:01:55 -07:00
parent b50d7adaeb
commit 7f71eef45b
1 changed files with 1 additions and 0 deletions

View File

@ -294,6 +294,7 @@ void EE_GRID_HELPER::computeAnchors( SCH_ITEM *aItem, const VECTOR2I &aRefPos, b
case SCH_HIER_LABEL_T:
case SCH_LABEL_T:
case SCH_BUS_WIRE_ENTRY_T:
case SCH_SHEET_PIN_T:
{
std::vector<wxPoint> pts = aItem->GetConnectionPoints();