Browse Source

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

Fixes https://gitlab.com/kicad/code/kicad/-/issues/15545
newinvert
Jeff Young 2 years ago
parent
commit
a24a8aaca7
  1. 6
      pcbnew/tools/edit_tool_move_fct.cpp

6
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 )

Loading…
Cancel
Save