Avoid marking symbols that will not be processed

We want to shorting the processing time by marking symbols that have
already been processed.  But we must avoid marking symbols that will not
be processed due to their other flags

Fixes https://gitlab.com/kicad/code/kicad/issues/11164
This commit is contained in:
Seth Hillbrand 2022-03-17 10:09:02 -07:00
parent cf4c403094
commit 2208e0db16
1 changed files with 2 additions and 1 deletions

View File

@ -730,7 +730,8 @@ void CONNECTION_GRAPH::buildItemSubGraphs()
SCH_CONNECTION* conn = aItem->GetOrInitConnection( sheet, this ); SCH_CONNECTION* conn = aItem->GetOrInitConnection( sheet, this );
bool unique = !( aItem->GetFlags() & CANDIDATE ); bool unique = !( aItem->GetFlags() & CANDIDATE );
aItem->SetFlags( CANDIDATE ); if( conn && !conn->SubgraphCode() )
aItem->SetFlags( CANDIDATE );
return ( unique && conn && ( conn->SubgraphCode() == 0 ) ); return ( unique && conn && ( conn->SubgraphCode() == 0 ) );
}; };