Pcbnew: fix delete dangling tracks only removes the last segment of tracks.
Fixes: lp:1816234 https://bugs.launchpad.net/kicad/+bug/1816234
This commit is contained in:
parent
ec59361f75
commit
303b7ac7f8
|
@ -5,7 +5,7 @@
|
|||
/*
|
||||
* This program source code file is part of KiCad, a free EDA CAD application.
|
||||
*
|
||||
* Copyright (C) 1992-2012 KiCad Developers, see change_log.txt for contributors.
|
||||
* Copyright (C) 1992-2019 KiCad Developers, see AUTHORS.txt for contributors.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public License
|
||||
|
|
|
@ -237,8 +237,6 @@ bool TRACKS_CLEANER::CleanupBoard( bool aRemoveMisConnected,
|
|||
// Delete dangling tracks
|
||||
if( aDeleteUnconnected )
|
||||
{
|
||||
buildTrackConnectionInfo();
|
||||
|
||||
if( deleteDanglingTracks() )
|
||||
{
|
||||
modified = true;
|
||||
|
@ -391,6 +389,7 @@ bool TRACKS_CLEANER::deleteDanglingTracks()
|
|||
|
||||
do // Iterate when at least one track is deleted
|
||||
{
|
||||
buildTrackConnectionInfo();
|
||||
item_erased = false;
|
||||
|
||||
TRACK* next_track;
|
||||
|
|
Loading…
Reference in New Issue