Missing change from last commit.

This commit is contained in:
Jeff Young 2020-08-24 21:59:43 +01:00
parent 5a0db6802a
commit 50b182574d
1 changed files with 2 additions and 7 deletions

View File

@ -1770,13 +1770,8 @@ bool SELECTION_TOOL::Selectable( const BOARD_ITEM* aItem, bool checkVisibilityOn
for( unsigned int layer : activeLayers )
{
if( aItem->Type() == PCB_PAD_T
&& static_cast<const D_PAD*>( aItem )->IsPadOnLayer( layer ) )
{
onActiveLayer = true;
break;
}
else if( aItem->IsOnLayer( ToLAYER_ID( layer ) ) )
// NOTE: Only checking the regular layers (not GAL meta-layers)
if( layer < PCB_LAYER_ID_COUNT && aItem->IsOnLayer( ToLAYER_ID( layer ) ) )
{
onActiveLayer = true;
break;