Schematic: fix global labels overriding wrong power symbols

Need to check pin netname now that we support changing the value of the
power symbol.

Fixes: https://gitlab.com/kicad/code/kicad/-/issues/14076
This commit is contained in:
Mike Williams 2023-02-27 09:23:34 -05:00
parent 5b2784f418
commit 45e67950fd
1 changed files with 2 additions and 1 deletions

View File

@ -1308,7 +1308,8 @@ void CONNECTION_GRAPH::processSubGraphs()
{
auto pin = static_cast<SCH_PIN*>( driver );
if( pin->IsGlobalPower() && pin->GetShownName() == test_name )
if( pin->IsGlobalPower()
&& pin->GetDefaultNetName( sheet ) == test_name )
{
match = true;
break;