Browse Source

Top layers includes a whole bunch of layers...

... and the first isn't particularly meaningful.  Use GetActiveLayer
instead.

Fixes https://gitlab.com/kicad/code/kicad/issues/9972
6.0.7
Jeff Young 4 years ago
parent
commit
4c565fd222
  1. 2
      pcbnew/tools/pcb_selection_tool.cpp

2
pcbnew/tools/pcb_selection_tool.cpp

@ -2460,7 +2460,7 @@ void PCB_SELECTION_TOOL::GuessSelectionCandidates( GENERAL_COLLECTOR& aCollector
std::set<BOARD_ITEM*> rejected;
wxPoint where( aWhere.x, aWhere.y );
PCB_LAYER_ID activeLayer = (PCB_LAYER_ID) view()->GetTopLayer();
PCB_LAYER_ID activeLayer = m_frame->GetActiveLayer();
LSET silkLayers( 2, B_SilkS, F_SilkS );
if( silkLayers[activeLayer] )

Loading…
Cancel
Save