From 07e1ae1b56bec448d1933d524a2c072968fcba3c Mon Sep 17 00:00:00 2001 From: Jon Evans Date: Sat, 13 Feb 2021 10:29:31 -0500 Subject: [PATCH] Fix logic of global label ERC check Fixes https://gitlab.com/kicad/code/kicad/-/issues/7392 --- eeschema/connection_graph.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eeschema/connection_graph.cpp b/eeschema/connection_graph.cpp index cc426af4f6..aaff53a251 100644 --- a/eeschema/connection_graph.cpp +++ b/eeschema/connection_graph.cpp @@ -2756,7 +2756,7 @@ bool CONNECTION_GRAPH::ercCheckLabels( const CONNECTION_SUBGRAPH* aSubgraph ) // This will be set to true if the global is connected to a pin above, but we // want to reset this to false so that globals get flagged if they only have a // single instance connected to a single pin - hasOtherConnections = ( pinCount < 2 ); + hasOtherConnections = ( pinCount > 1 ); auto it = m_net_name_to_subgraphs_map.find( name );