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:
@@ -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 );
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user