Browse Source

pcbnew: Do not source highlight from non-copper pads

Highlight connections is meant to show the copper connections on a
board.  We remove the non-copper pads from our selection when attempting
to source the net for highlighting.

Fixes: lp:1815898
* https://bugs.launchpad.net/kicad/+bug/1815898
pull/13/head
Seth Hillbrand 7 years ago
parent
commit
1f7022cb64
  1. 3
      pcbnew/tools/pcb_editor_control.cpp

3
pcbnew/tools/pcb_editor_control.cpp

@ -983,6 +983,9 @@ static bool highlightNet( TOOL_MANAGER* aToolMgr, const VECTOR2D& aPosition,
for( int i = 0; i < collector.GetCount(); i++ )
{
if( ( collector[i]->GetLayerSet() & LSET::AllCuMask() ).none() )
collector.Remove( i );
if( collector[i]->Type() == PCB_PAD_T )
{
frame->SendMessageToEESCHEMA( static_cast<BOARD_CONNECTED_ITEM*>( collector[i] ) );

Loading…
Cancel
Save