Don't count power flags as sinks/sources

Just because we have a power flag on a net does not mean that there are
more than 1 pin

Fixes https://gitlab.com/kicad/code/kicad/-/issues/13469
This commit is contained in:
Seth Hillbrand 2024-01-16 15:22:49 -08:00
parent 57c40d4f17
commit 8fea4812f3
1 changed files with 5 additions and 2 deletions

View File

@ -3386,11 +3386,14 @@ bool CONNECTION_GRAPH::ercCheckNoConnects( const CONNECTION_SUBGRAPH* aSubgraph
{
case SCH_PIN_T:
{
SCH_PIN* test_pin = static_cast<SCH_PIN*>( item );
if( test_pin->GetParentSymbol()->IsPower() )
continue;
// Stacked pins do not count as other connections but non-stacked pins do
if( !has_other_connections && !pins.empty() )
{
SCH_PIN* test_pin = static_cast<SCH_PIN*>( item );
for( SCH_PIN* other_pin : pins )
{
if( !test_pin->IsStacked( other_pin ) )