pcbnew: Clear highlight cross-probe

When highlighting a new net, clear the Eeschema highlight before
selecting items

Fixes: lp:1815147
* https://bugs.launchpad.net/kicad/+bug/1815147
This commit is contained in:
Seth Hillbrand 2019-03-04 07:00:06 -08:00
parent 92e2aa31a9
commit 3dfa57fe1d
1 changed files with 3 additions and 0 deletions

View File

@ -981,6 +981,9 @@ static bool highlightNet( TOOL_MANAGER* aToolMgr, const VECTOR2D& aPosition,
collector.Collect( board, GENERAL_COLLECTOR::Zones,
wxPoint( aPosition.x, aPosition.y ), guide );
// Clear the previous highlight
frame->SendMessageToEESCHEMA( nullptr );
for( int i = 0; i < collector.GetCount(); i++ )
{
if( ( collector[i]->GetLayerSet() & LSET::AllCuMask() ).none() )