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;
|
SCH_ITEM* previousDriver = nullptr;
|
||||||
CONNECTION_SUBGRAPH::PRIORITY priority = CONNECTION_SUBGRAPH::PRIORITY::INVALID;
|
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 )
|
if( item == aItem )
|
||||||
continue;
|
continue;
|
||||||
|
|
Loading…
Reference in New Issue