Fix nullptr group assert in tracks cleaner.

This commit is contained in:
Alex Shvartzkop 2024-02-10 00:44:00 +03:00
parent d4e89543de
commit 2121227194
1 changed files with 3 additions and 0 deletions

View File

@ -698,6 +698,9 @@ bool TRACKS_CLEANER::mergeCollinearSegments( PCB_TRACK* aSeg1, PCB_TRACK* aSeg2
m_commit.Removed( aSeg2 );
}
if( dummy_seg.GetParentGroup() )
dummy_seg.SetParentGroup( nullptr );
return true;
}