Only deselect existing footprint if currently selected
If we have a footprint currently selected and we click on its empty space again, we deselect the footprint. However, if we click on the empty space of a different footprint, we will select that footprint instead. Fixes https://gitlab.com/kicad/code/kicad/-/issues/15284
This commit is contained in:
parent
a9b7b73f10
commit
7fac72a914
|
@ -3261,6 +3261,8 @@ void PCB_SELECTION_TOOL::FilterCollectorForFootprints( GENERAL_COLLECTOR& aColle
|
|||
|
||||
if( item->Type() != PCB_FOOTPRINT_T )
|
||||
fp = static_cast<BOARD_ITEM*>( item )->GetParentFootprint();
|
||||
else
|
||||
fp = static_cast<FOOTPRINT*>( item );
|
||||
|
||||
// If the selection contains items that are not footprints, then don't restrict
|
||||
// whether we deselect the item or not.
|
||||
|
|
Loading…
Reference in New Issue