Protect move tool from re-entrancy.

m_dragInProgress is usually sufficient, except when we haven't started
one yet.  In any case, conflating the two is probably a bad idea.

Fixes https://gitlab.com/kicad/code/kicad/issues/12936
This commit is contained in:
Jeff Young
2022-11-18 17:08:38 +00:00
parent e09e521162
commit bc271a8d15
3 changed files with 13 additions and 0 deletions
+4
View File
@@ -217,6 +217,10 @@ void SELECTION_TOOL::onDisambiguationExpire( wxTimerEvent& aEvent )
if( selection().GetSize() >= 2 )
return;
// If another tool has since started running then we don't want to interrupt
if( !getEditFrame<EDA_DRAW_FRAME>()->ToolStackIsEmpty() )
return;
m_toolMgr->ProcessEvent( EVENTS::DisambiguatePoint );
}