Don't allow selection of footprint text in board editor.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/17271
(cherry picked from commit 25e181db5c
)
This commit is contained in:
parent
091b34c05f
commit
f0e2adc3df
|
@ -2773,6 +2773,11 @@ bool PCB_SELECTION_TOOL::Selectable( const BOARD_ITEM* aItem, bool checkVisibili
|
|||
}
|
||||
else if( aItem->GetParentFootprint() )
|
||||
{
|
||||
// Footprint text selections are only allowed in footprint editor mode.
|
||||
// Careful, though: we also get here through the PCB_FIELD_T case.
|
||||
if( aItem->Type() == PCB_TEXT_T && !checkVisibilityOnly )
|
||||
return false;
|
||||
|
||||
if( !view()->IsVisible( text ) )
|
||||
return false;
|
||||
|
||||
|
|
Loading…
Reference in New Issue