diff --git a/pcbnew/footprint.cpp b/pcbnew/footprint.cpp index 79c3b24341..e01b5a9a1e 100644 --- a/pcbnew/footprint.cpp +++ b/pcbnew/footprint.cpp @@ -939,7 +939,9 @@ BOX2I FOOTPRINT::GetFpPadsLocalBbox() const for( PAD* pad : dummy.Pads() ) bbox.Merge( pad->GetBoundingBox() ); + // Remove the parent and the group from the dummy footprint before deletion dummy.SetParent( nullptr ); + dummy.SetParentGroup( nullptr ); return bbox; }