Respect selectabiltiy when adding wholy-selected groups.
Fixes https://gitlab.com/kicad/code/kicad/issues/13092
This commit is contained in:
parent
bb7682f913
commit
5327ea5823
|
@ -938,8 +938,12 @@ bool PCB_SELECTION_TOOL::selectMultiple()
|
|||
if( !greedySelection && selectionRect.Contains( group->GetBoundingBox() )
|
||||
&& newset.size() )
|
||||
{
|
||||
for( BOARD_ITEM* group_item : newset )
|
||||
{
|
||||
if( Selectable( group_item ) )
|
||||
collector.Append( *newset.begin() );
|
||||
}
|
||||
}
|
||||
|
||||
for( BOARD_ITEM* group_item : newset )
|
||||
group_items.emplace( group_item );
|
||||
|
|
Loading…
Reference in New Issue