Fixes: lp:1653146 (Assertion failed when trying to delete track with router tool active, in debug mode)
https://bugs.launchpad.net/kicad/+bug/1653146
This commit is contained in:
parent
655f54bea5
commit
c45cc1de68
|
@ -757,8 +757,14 @@ void NODE::Remove( ITEM* aItem )
|
|||
break;
|
||||
|
||||
case ITEM::LINE_T:
|
||||
assert( false );
|
||||
{
|
||||
auto l = static_cast<LINE *> ( aItem );
|
||||
|
||||
for ( auto s : l->LinkedSegments() )
|
||||
Remove( s );
|
||||
|
||||
break;
|
||||
}
|
||||
|
||||
case ITEM::VIA_T:
|
||||
Remove( static_cast<VIA*>( aItem ) );
|
||||
|
|
Loading…
Reference in New Issue