From 7b9f18646434e672c7c9da3ae78a9a110b38bbb9 Mon Sep 17 00:00:00 2001 From: Jon Evans Date: Sun, 17 Mar 2019 17:19:21 -0400 Subject: [PATCH] Fix false assert when CONNECTIVITY_DEBUG is enabled --- eeschema/connection_graph.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/eeschema/connection_graph.cpp b/eeschema/connection_graph.cpp index ccf73f192b..c90e17163b 100644 --- a/eeschema/connection_graph.cpp +++ b/eeschema/connection_graph.cpp @@ -930,7 +930,8 @@ void CONNECTION_GRAPH::buildConnectionGraph() else { #ifdef CONNECTIVITY_DEBUG - wxASSERT_MSG( false, "More than one net code for a neighbor!" ); + if( c != candidate_net_code ) + wxASSERT_MSG( false, "More than one net code for a neighbor!" ); #endif } }