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:
parent
e135229ca6
commit
105c9c71ee
|
@ -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>();
|
||||
|
|
Loading…
Reference in New Issue