Don't show a leading ratline to a NPTH.

Fixes https://gitlab.com/kicad/code/kicad/issues/6960
This commit is contained in:
Jeff Young 2021-01-07 12:24:13 +00:00
parent f702b64b8d
commit e41c06304b
1 changed files with 2 additions and 2 deletions

View File

@ -1300,7 +1300,7 @@ void NODE::AllItemsInNet( int aNet, std::set<ITEM*>& aItems, int aKindMask)
{
for( ITEM* item : *l_cur )
{
if( item->OfKind( aKindMask ) )
if( item->OfKind( aKindMask ) && item->IsRoutable() )
aItems.insert( item );
}
}
@ -1313,7 +1313,7 @@ void NODE::AllItemsInNet( int aNet, std::set<ITEM*>& aItems, int aKindMask)
{
for( ITEM* item : *l_root )
{
if( !Overrides( item ) && item->OfKind( aKindMask ) )
if( !Overrides( item ) && item->OfKind( aKindMask ) && item->IsRoutable() )
aItems.insert( item );
}
}