From f81313068eca71e5c0cf0a30d3f61e0d865b8617 Mon Sep 17 00:00:00 2001 From: Jon Evans Date: Thu, 27 Oct 2022 22:36:40 -0400 Subject: [PATCH] ERC: Include power connections in multiple driver test Fixes https://gitlab.com/kicad/code/kicad/-/issues/12138 (cherry picked from commit 141c1f020e2bae1ade50379e409c7b987d319eb1) --- eeschema/connection_graph.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/eeschema/connection_graph.cpp b/eeschema/connection_graph.cpp index 35c1cd8ecd..b0617d2d9c 100644 --- a/eeschema/connection_graph.cpp +++ b/eeschema/connection_graph.cpp @@ -2372,7 +2372,9 @@ bool CONNECTION_GRAPH::ercCheckMultipleDrivers( const CONNECTION_SUBGRAPH* aSubg if( driver->Type() == SCH_GLOBAL_LABEL_T || driver->Type() == SCH_HIER_LABEL_T - || driver->Type() == SCH_LABEL_T ) + || driver->Type() == SCH_LABEL_T + || ( driver->Type() == SCH_PIN_T + && static_cast( driver )->IsPowerConnection() ) ) { wxString primaryName = aSubgraph->GetNameForDriver( aSubgraph->m_driver ); wxString secondaryName = aSubgraph->GetNameForDriver( driver );