From 4a4fab78a385df4b8e131166b4cf7f6732c60e7a Mon Sep 17 00:00:00 2001 From: Mike Williams Date: Mon, 28 Nov 2022 11:07:43 -0500 Subject: [PATCH] PCB: allow swap while moving --- pcbnew/tools/edit_tool_move_fct.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pcbnew/tools/edit_tool_move_fct.cpp b/pcbnew/tools/edit_tool_move_fct.cpp index cdc5910d6c..6ee7b35b50 100644 --- a/pcbnew/tools/edit_tool_move_fct.cpp +++ b/pcbnew/tools/edit_tool_move_fct.cpp @@ -66,7 +66,7 @@ int EDIT_TOOL::Swap( const TOOL_EVENT& aEvent ) { - if( isRouterActive() || m_dragging ) + if( isRouterActive() ) { wxBell(); return 0; @@ -179,7 +179,8 @@ int EDIT_TOOL::Swap( const TOOL_EVENT& aEvent ) } } - m_commit->Push( _( "Swap" ) ); + if( !m_dragging ) + m_commit->Push( _( "Swap" ) ); m_toolMgr->ProcessEvent( EVENTS::SelectedItemsModified );