Restore preferential selection treatment for silk items.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/16607

(cherry picked from commit df48ebfbe7)
This commit is contained in:
Jeff Young 2024-01-17 13:53:21 +00:00
parent 9ceace2a47
commit 0f715223e9
1 changed files with 2 additions and 2 deletions

View File

@ -2977,8 +2977,8 @@ void PCB_SELECTION_TOOL::GuessSelectionCandidates( GENERAL_COLLECTOR& aCollector
{
BOARD_ITEM* item = aCollector[i];
if( item->IsType( { PCB_TEXT_T, PCB_TEXTBOX_T, PCB_SHAPE_T, PCB_FOOTPRINT_T } )
&& item->IsOnLayer( activeLayer ) )
if( item->IsType( { PCB_TEXT_T, PCB_TEXTBOX_T, PCB_SHAPE_T } )
&& silkLayers[ item->GetLayer() ] )
{
preferred.insert( item );
}