pcbnew: don't move twice

In pcbnew, if you press M to move your selection and press M again, then escape, you will trigger the https://gitlab.com/kicad/code/kicad/-/blob/master/common/tool/tools_holder.cpp#L106 assert
This commit is contained in:
Lucas Dumont 2023-04-18 04:26:18 +12:00 committed by jean-pierre charras
parent 2992d7c68b
commit c781fde236
1 changed files with 1 additions and 1 deletions

View File

@ -225,7 +225,7 @@ int EDIT_TOOL::PackAndMoveFootprints( const TOOL_EVENT& aEvent )
int EDIT_TOOL::Move( const TOOL_EVENT& aEvent )
{
if( isRouterActive() )
if( isRouterActive() || m_dragging )
{
wxBell();
return 0;