diff --git a/pcbnew/router/pns_node.cpp b/pcbnew/router/pns_node.cpp index 86e733ce06..638f3ed8a9 100644 --- a/pcbnew/router/pns_node.cpp +++ b/pcbnew/router/pns_node.cpp @@ -1300,7 +1300,7 @@ void NODE::AllItemsInNet( int aNet, std::set& 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& 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 ); } }