Don't start a pack&move when already in an EDIT_TOOL drag or move.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/15545
This commit is contained in:
Jeff Young 2023-09-03 14:01:54 +01:00
parent 624203f2e1
commit a24a8aaca7
1 changed files with 6 additions and 0 deletions

View File

@ -159,6 +159,12 @@ int EDIT_TOOL::Swap( const TOOL_EVENT& aEvent )
int EDIT_TOOL::PackAndMoveFootprints( const TOOL_EVENT& aEvent ) int EDIT_TOOL::PackAndMoveFootprints( const TOOL_EVENT& aEvent )
{ {
if( isRouterActive() || m_dragging )
{
wxBell();
return 0;
}
BOARD_COMMIT commit( this ); BOARD_COMMIT commit( this );
PCB_SELECTION& selection = m_selectionTool->RequestSelection( PCB_SELECTION& selection = m_selectionTool->RequestSelection(
[]( const VECTOR2I& aPt, GENERAL_COLLECTOR& aCollector, PCB_SELECTION_TOOL* sTool ) []( const VECTOR2I& aPt, GENERAL_COLLECTOR& aCollector, PCB_SELECTION_TOOL* sTool )