Not all items are drivers
Fixes https://gitlab.com/kicad/code/kicad/-/issues/5946
This commit is contained in:
parent
90baed7e82
commit
1df35145b5
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue