Browse Source

Don't allow selection of footprint text in board editor.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/17271
newinvert
Jeff Young 2 years ago
parent
commit
25e181db5c
  1. 5
      pcbnew/tools/pcb_selection_tool.cpp

5
pcbnew/tools/pcb_selection_tool.cpp

@ -2910,6 +2910,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…
Cancel
Save