Fix off-by-one in AssembleTuningPath

Fixes https://gitlab.com/kicad/code/kicad/-/issues/9003
This commit is contained in:
Jon Evans 2021-09-22 20:25:10 -04:00
parent 5975524826
commit a2ad204f4b
1 changed files with 1 additions and 1 deletions

View File

@ -381,7 +381,7 @@ const ITEM_SET TOPOLOGY::AssembleTuningPath( ITEM* aStart, SOLID** aStartPad, SO
aLine.Remove( start, clip - 1 );
// Now connect the dots
aLine.Insert( aForward ? 0 : aLine.PointCount() - 1, aPad->GetPosition() );
aLine.Insert( aForward ? 0 : aLine.PointCount(), aPad->GetPosition() );
};
auto processPad =