Not all items are drivers

Fixes https://gitlab.com/kicad/code/kicad/-/issues/5946
This commit is contained in:
Jon Evans 2020-10-10 09:16:17 -04:00
parent 90baed7e82
commit 1df35145b5
1 changed files with 1 additions and 1 deletions

View File

@ -1033,7 +1033,7 @@ static void inheritNetclass( const SCH_SHEET_PATH& aSheetPath, SCH_TEXT* aItem )
SCH_ITEM* previousDriver = nullptr;
CONNECTION_SUBGRAPH::PRIORITY priority = CONNECTION_SUBGRAPH::PRIORITY::INVALID;
for( SCH_ITEM* item : subgraph->m_items )
for( SCH_ITEM* item : subgraph->m_drivers )
{
if( item == aItem )
continue;