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
(cherry picked from commit 2208e0db16
)
This commit is contained in:
parent
05bca282f7
commit
deb7a0beff
|
@ -753,7 +753,8 @@ void CONNECTION_GRAPH::buildItemSubGraphs()
|
|||
SCH_CONNECTION* conn = aItem->GetOrInitConnection( sheet, this );
|
||||
bool unique = !( aItem->GetFlags() & CANDIDATE );
|
||||
|
||||
aItem->SetFlags( CANDIDATE );
|
||||
if( conn && !conn->SubgraphCode() )
|
||||
aItem->SetFlags( CANDIDATE );
|
||||
|
||||
return ( unique && conn && ( conn->SubgraphCode() == 0 ) );
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue