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:
parent
624203f2e1
commit
a24a8aaca7
|
@ -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 )
|
||||||
|
|
Loading…
Reference in New Issue