mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-09-14 18:23:15 +02:00
parent
058fb3afa1
commit
1e104d5bd4
@ -1280,11 +1280,17 @@ void CONNECTION_GRAPH::buildConnectionGraph()
|
|||||||
if( secondary_name == subgraph->m_driver_connection->Name() )
|
if( secondary_name == subgraph->m_driver_connection->Name() )
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
bool secondary_is_global = CONNECTION_SUBGRAPH::GetDriverPriority( driver )
|
||||||
|
>= CONNECTION_SUBGRAPH::PRIORITY::POWER_PIN;
|
||||||
|
|
||||||
for( CONNECTION_SUBGRAPH* candidate : global_subgraphs )
|
for( CONNECTION_SUBGRAPH* candidate : global_subgraphs )
|
||||||
{
|
{
|
||||||
if( candidate == subgraph )
|
if( candidate == subgraph )
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
if( !secondary_is_global && candidate->m_sheet != subgraph->m_sheet )
|
||||||
|
continue;
|
||||||
|
|
||||||
SCH_CONNECTION* conn = candidate->m_driver_connection;
|
SCH_CONNECTION* conn = candidate->m_driver_connection;
|
||||||
|
|
||||||
if( conn->Name() == secondary_name )
|
if( conn->Name() == secondary_name )
|
||||||
|
Loading…
x
Reference in New Issue
Block a user