Browse Source

Ativate delete tool so it can display the selection clarification menu when needed.

Fixes: lp:1835371
* https://bugs.launchpad.net/kicad/+bug/1835371
pull/15/head
Jeff Young 7 years ago
parent
commit
c60118b6a4
  1. 1
      pcbnew/tools/edit_tool.cpp

1
pcbnew/tools/edit_tool.cpp

@ -805,6 +805,7 @@ int EDIT_TOOL::Remove( const TOOL_EVENT& aEvent )
return 1;
std::vector<BOARD_ITEM*> lockedItems;
Activate();
// get a copy instead of reference (as we're going to clear the selection before removing items)
PCBNEW_SELECTION selectionCopy;

Loading…
Cancel
Save