A footprint does it's own child hit testing.
We only need to add it for groups.
This commit is contained in:
parent
77c19fa99a
commit
0370db43ae
|
@ -2982,12 +2982,15 @@ bool PCB_SELECTION_TOOL::selectionContains( const VECTOR2I& aPoint ) const
|
||||||
|
|
||||||
bool found = false;
|
bool found = false;
|
||||||
|
|
||||||
static_cast<BOARD_ITEM*>( item )->RunOnDescendants(
|
if( PCB_GROUP* group = dynamic_cast<PCB_GROUP*>( item ) )
|
||||||
[&]( BOARD_ITEM* aItem )
|
{
|
||||||
{
|
group->RunOnDescendants(
|
||||||
if( aItem->HitTest( aPoint, margin ) )
|
[&]( BOARD_ITEM* aItem )
|
||||||
found = true;
|
{
|
||||||
} );
|
if( aItem->HitTest( aPoint, margin ) )
|
||||||
|
found = true;
|
||||||
|
} );
|
||||||
|
}
|
||||||
|
|
||||||
if( found )
|
if( found )
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Reference in New Issue