From 545d127a1cae03ad498a98d92d92a8dc4c1d9121 Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Mon, 31 Aug 2015 10:44:27 +0200 Subject: [PATCH] Fix netlist changes netnames randomly when netnames come from power pins invisible connected together but having different names. --- eeschema/netlist.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eeschema/netlist.cpp b/eeschema/netlist.cpp index 54f28c83ae..cb8bef0cb7 100644 --- a/eeschema/netlist.cpp +++ b/eeschema/netlist.cpp @@ -426,7 +426,7 @@ static bool evalLabelsPriority( const NETLIST_OBJECT* aLabel1, // and for a given path length, by alphabetic order if( aLabel1->m_Type == NET_PINLABEL || aLabel1->m_Type == NET_GLOBLABEL ) - return aLabel1->m_Label.Cmp( aLabel2->m_Label ); + return aLabel1->m_Label.Cmp( aLabel2->m_Label ) < 0; // not global: names are prefixed by their sheetpath // use name defined in higher hierarchical sheet