From 8fea4812f37cf19daed1834db17ae0261f438177 Mon Sep 17 00:00:00 2001 From: Seth Hillbrand Date: Tue, 16 Jan 2024 15:22:49 -0800 Subject: [PATCH] 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 --- eeschema/connection_graph.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/eeschema/connection_graph.cpp b/eeschema/connection_graph.cpp index 945bc31d6b..48545d492f 100644 --- a/eeschema/connection_graph.cpp +++ b/eeschema/connection_graph.cpp @@ -3386,11 +3386,14 @@ bool CONNECTION_GRAPH::ercCheckNoConnects( const CONNECTION_SUBGRAPH* aSubgraph { case SCH_PIN_T: { + SCH_PIN* test_pin = static_cast( 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( item ); - for( SCH_PIN* other_pin : pins ) { if( !test_pin->IsStacked( other_pin ) )