Don't let point editor interrupt other operations.

Fixes: lp:1832416
* https://bugs.launchpad.net/kicad/+bug/1832416

(cherry picked from commit ae8daee83c)
This commit is contained in:
Jeff Young 2019-06-12 17:14:55 +01:00
parent e135229ca6
commit 105c9c71ee
1 changed files with 5 additions and 1 deletions

View File

@ -299,11 +299,15 @@ int POINT_EDITOR::OnSelectionChange( const TOOL_EVENT& aEvent )
const SELECTION& selection = m_selectionTool->GetSelection();
if( selection.Size() != 1 )
if( selection.Size() != 1 || selection.Front()->GetEditFlags() )
return 0;
Activate();
// On a rapid paste, paste, the Activate call can change the selection.
if( selection.Size() != 1 || selection.Front()->GetEditFlags() )
return 0;
KIGFX::VIEW_CONTROLS* controls = getViewControls();
KIGFX::VIEW* view = getView();
PCB_BASE_EDIT_FRAME* editFrame = getEditFrame<PCB_BASE_EDIT_FRAME>();