Respect selectabiltiy when adding wholy-selected groups.

Fixes https://gitlab.com/kicad/code/kicad/issues/13092
This commit is contained in:
Jeff Young 2022-12-15 17:57:13 +00:00
parent bb7682f913
commit 5327ea5823
1 changed files with 5 additions and 1 deletions

View File

@ -938,7 +938,11 @@ bool PCB_SELECTION_TOOL::selectMultiple()
if( !greedySelection && selectionRect.Contains( group->GetBoundingBox() )
&& newset.size() )
{
collector.Append( *newset.begin() );
for( BOARD_ITEM* group_item : newset )
{
if( Selectable( group_item ) )
collector.Append( *newset.begin() );
}
}
for( BOARD_ITEM* group_item : newset )