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:
Tomasz Wlostowski 2016-12-30 20:14:44 +01:00 committed by jean-pierre charras
parent 655f54bea5
commit c45cc1de68
1 changed files with 7 additions and 1 deletions

View File

@ -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 ) );