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
This commit is contained in:
parent
b6565079ee
commit
1f7022cb64
|
@ -983,6 +983,9 @@ static bool highlightNet( TOOL_MANAGER* aToolMgr, const VECTOR2D& aPosition,
|
||||||
|
|
||||||
for( int i = 0; i < collector.GetCount(); i++ )
|
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 )
|
if( collector[i]->Type() == PCB_PAD_T )
|
||||||
{
|
{
|
||||||
frame->SendMessageToEESCHEMA( static_cast<BOARD_CONNECTED_ITEM*>( collector[i] ) );
|
frame->SendMessageToEESCHEMA( static_cast<BOARD_CONNECTED_ITEM*>( collector[i] ) );
|
||||||
|
|
Loading…
Reference in New Issue