Fix bone-headed copy/paste.

This commit is contained in:
Jeff Young 2023-08-15 23:28:19 +01:00
parent e0d4cf2d5b
commit c54d97170b
1 changed files with 6 additions and 1 deletions

View File

@ -2695,7 +2695,12 @@ bool PCB_SELECTION_TOOL::Selectable( const BOARD_ITEM* aItem, bool checkVisibili
case PCB_DIM_CENTER_T:
case PCB_DIM_RADIAL_T:
case PCB_DIM_ORTHOGONAL_T:
if( aItem->GetParentFootprint() )
if( m_isFootprintEditor )
{
if( !view()->IsLayerVisible( aItem->GetLayer() ) )
return false;
}
else if( aItem->GetParentFootprint() )
{
// Footprint dimension selections are only allowed in footprint editor mode.
if( !checkVisibilityOnly )