From 8be9832153b52bbf92ea09017791e1d9c509f971 Mon Sep 17 00:00:00 2001 From: Jon Evans Date: Mon, 29 Mar 2021 17:45:07 -0400 Subject: [PATCH] PNS: Don't highlight Net 0 (the unconnected net) Fixes https://gitlab.com/kicad/code/kicad/-/issues/8040 --- pcbnew/router/router_tool.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pcbnew/router/router_tool.cpp b/pcbnew/router/router_tool.cpp index c62fea076f..950ef65b1e 100644 --- a/pcbnew/router/router_tool.cpp +++ b/pcbnew/router/router_tool.cpp @@ -994,7 +994,7 @@ bool ROUTER_TOOL::prepareInteractive() editFrame->SetActiveLayer( ToLAYER_ID( routingLayer ) ); - if( m_startItem && m_startItem->Net() >= 0 ) + if( m_startItem && m_startItem->Net() > 0 ) highlightNet( true, m_startItem->Net() ); controls()->ForceCursorPosition( false ); @@ -1389,7 +1389,7 @@ void ROUTER_TOOL::performDragging( int aMode ) if( !dragStarted ) return; - if( m_startItem && m_startItem->Net() >= 0 ) + if( m_startItem && m_startItem->Net() > 0 ) highlightNet( true, m_startItem->Net() ); ctls->SetAutoPan( true );