Exit fix loop in cleanup tracks

Fixes https://gitlab.com/kicad/code/kicad/issues/5968
This commit is contained in:
Seth Hillbrand 2020-10-11 07:57:48 -07:00
parent 91db6a770c
commit 8fcb6c6f05
1 changed files with 2 additions and 1 deletions

View File

@ -404,10 +404,11 @@ void TRACKS_CLEANER::cleanupSegments()
if( !m_dryRun )
removeItems( toRemove );
bool merged = false;
bool merged;
do
{
merged = false;
m_brd->BuildConnectivity();
// Keep a duplicate deque to all deleting in the primary