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 ) );
|
editFrame->SetActiveLayer( ToLAYER_ID( routingLayer ) );
|
||||||
|
|
||||||
if( m_startItem && m_startItem->Net() >= 0 )
|
if( m_startItem && m_startItem->Net() > 0 )
|
||||||
highlightNet( true, m_startItem->Net() );
|
highlightNet( true, m_startItem->Net() );
|
||||||
|
|
||||||
controls()->ForceCursorPosition( false );
|
controls()->ForceCursorPosition( false );
|
||||||
|
@ -1389,7 +1389,7 @@ void ROUTER_TOOL::performDragging( int aMode )
|
||||||
if( !dragStarted )
|
if( !dragStarted )
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if( m_startItem && m_startItem->Net() >= 0 )
|
if( m_startItem && m_startItem->Net() > 0 )
|
||||||
highlightNet( true, m_startItem->Net() );
|
highlightNet( true, m_startItem->Net() );
|
||||||
|
|
||||||
ctls->SetAutoPan( true );
|
ctls->SetAutoPan( true );
|
||||||
|
|
Loading…
Reference in New Issue