PNS: Don't highlight Net 0 (the unconnected net)

Fixes https://gitlab.com/kicad/code/kicad/-/issues/8040
This commit is contained in:
Jon Evans 2021-03-29 17:45:07 -04:00
parent 2fc34de1be
commit 8be9832153
1 changed files with 2 additions and 2 deletions

View File

@ -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 );