From a24a8aaca73a266b78fdb594c852189d89c431fd Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Sun, 3 Sep 2023 14:01:54 +0100 Subject: [PATCH] Don't start a pack&move when already in an EDIT_TOOL drag or move. Fixes https://gitlab.com/kicad/code/kicad/-/issues/15545 --- pcbnew/tools/edit_tool_move_fct.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pcbnew/tools/edit_tool_move_fct.cpp b/pcbnew/tools/edit_tool_move_fct.cpp index 6d3efbbd79..3ab2f9b4a8 100644 --- a/pcbnew/tools/edit_tool_move_fct.cpp +++ b/pcbnew/tools/edit_tool_move_fct.cpp @@ -159,6 +159,12 @@ int EDIT_TOOL::Swap( const TOOL_EVENT& aEvent ) int EDIT_TOOL::PackAndMoveFootprints( const TOOL_EVENT& aEvent ) { + if( isRouterActive() || m_dragging ) + { + wxBell(); + return 0; + } + BOARD_COMMIT commit( this ); PCB_SELECTION& selection = m_selectionTool->RequestSelection( []( const VECTOR2I& aPt, GENERAL_COLLECTOR& aCollector, PCB_SELECTION_TOOL* sTool )