Fixed duplicate misbehaviour when duplicating single track/via

Fixes: lp:1753158
* https://bugs.launchpad.net/kicad/+bug/1753158
This commit is contained in:
Tomasz Włostowski 2018-03-05 14:52:09 +01:00
parent fabbc48b40
commit 4be12292a0
1 changed files with 2 additions and 2 deletions

View File

@ -995,9 +995,10 @@ int EDIT_TOOL::Duplicate( const TOOL_EVENT& aEvent )
editFrame->DisplayToolMsg( wxString::Format( _( "Duplicated %d item(s)" ), editFrame->DisplayToolMsg( wxString::Format( _( "Duplicated %d item(s)" ),
(int) new_items.size() ) ); (int) new_items.size() ) );
// If items were duplicated, pick them up // If items were duplicated, pick them up
// this works well for "dropping" copies around and pushes the commit // this works well for "dropping" copies around and pushes the commit
TOOL_EVENT evt = PCB_ACTIONS::editActivate.MakeEvent(); TOOL_EVENT evt = PCB_ACTIONS::move.MakeEvent();
Main( evt ); Main( evt );
} }
@ -1367,4 +1368,3 @@ int EDIT_TOOL::cutToClipboard( const TOOL_EVENT& aEvent )
Remove( aEvent ); Remove( aEvent );
return 0; return 0;
} }