pcbnew: Don't duplicate TOOL_EVENT
There is some odd interaction in the default copy constructor for TOOL_EVENT using boost::optional under gcc. Avoid this by explicitly constructing the event needed for cut Fixes: lp:1812848 * https://bugs.launchpad.net/kicad/+bug/1812848
This commit is contained in:
parent
bb2e402bc7
commit
7551613826
|
@ -1553,7 +1553,7 @@ int EDIT_TOOL::cutToClipboard( const TOOL_EVENT& aEvent )
|
|||
// N.B. Setting the CUT flag prevents lock filtering as we only want to delete the items that
|
||||
// were copied to the clipboard, no more, no fewer. Filtering for locked item, if any will be done
|
||||
// in the copyToClipboard() routine
|
||||
TOOL_EVENT evt = aEvent;
|
||||
TOOL_EVENT evt( aEvent.Category(), aEvent.Action(), TOOL_ACTION_SCOPE::AS_GLOBAL );
|
||||
evt.SetParameter( PCB_ACTIONS::REMOVE_FLAGS::CUT );
|
||||
Remove( evt );
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue