PNS: Don't highlight Net 0 (the unconnected net)
Fixes https://gitlab.com/kicad/code/kicad/-/issues/8040
This commit is contained in:
parent
2fc34de1be
commit
8be9832153
|
@ -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 );
|
||||
|
|
Loading…
Reference in New Issue