diff --git a/pcbnew/router/pns_itemset.h b/pcbnew/router/pns_itemset.h index d55a180bb1..4e02edb75a 100644 --- a/pcbnew/router/pns_itemset.h +++ b/pcbnew/router/pns_itemset.h @@ -120,6 +120,9 @@ public: { int n = 0; + if( aKindMask == -1 || aKindMask == ITEM::ANY_T ) + return m_items.size(); + for( ITEM* item : m_items ) { if( item->Kind() & aKindMask )