Try and walk from a real component pin rather than power symbol that will fail our later check

This commit is contained in:
Marek Roszko 2024-01-21 21:12:14 -05:00
parent caf463bbd2
commit 059b043935
1 changed files with 5 additions and 1 deletions

View File

@ -3420,7 +3420,11 @@ bool CONNECTION_GRAPH::ercCheckNoConnects( const CONNECTION_SUBGRAPH* aSubgraph
// But if there is a power pin, it might be connected elsewhere
for( SCH_PIN* test_pin : pins )
{
if( test_pin->GetType() == ELECTRICAL_PINTYPE::PT_POWER_IN )
// Prefer the pin is part of a real component rather than some stray power symbol
// Or else we may fail walking connected components to a power symbol pin since we reject
// starting at a power symbol
if( test_pin->GetType() == ELECTRICAL_PINTYPE::PT_POWER_IN
&& !test_pin->IsGlobalPower() )
{
pin = test_pin;
break;