Remove dummy pad from group before deleting

The dummy pad doesn't need group information, and it asserts when it has
it and is deleted.

Fixes KICAD-3B9
This commit is contained in:
Ian McInerney 2023-08-21 10:32:50 +01:00
parent 84fa4532b9
commit 2d8b707a3a
1 changed files with 3 additions and 0 deletions

View File

@ -364,6 +364,9 @@ void BOARD_ADAPTER::createPadWithMargin( const PAD* aPad, CONTAINER_2D_BASE* aCo
dummy.SetSize( VECTOR2I( dummySize.x, dummySize.y ) );
dummy.TransformShapeToPolygon( poly, aLayer, 0, maxError, ERROR_INSIDE );
clearance = { 0, 0 };
// Remove group membership from dummy item before deleting
dummy.SetParentGroup( nullptr );
}
else
{