PCB: allow swap while moving

This commit is contained in:
Mike Williams 2022-11-28 11:07:43 -05:00
parent 3042633f4a
commit 4a4fab78a3
1 changed files with 3 additions and 2 deletions

View File

@ -66,7 +66,7 @@
int EDIT_TOOL::Swap( const TOOL_EVENT& aEvent ) int EDIT_TOOL::Swap( const TOOL_EVENT& aEvent )
{ {
if( isRouterActive() || m_dragging ) if( isRouterActive() )
{ {
wxBell(); wxBell();
return 0; return 0;
@ -179,6 +179,7 @@ int EDIT_TOOL::Swap( const TOOL_EVENT& aEvent )
} }
} }
if( !m_dragging )
m_commit->Push( _( "Swap" ) ); m_commit->Push( _( "Swap" ) );
m_toolMgr->ProcessEvent( EVENTS::SelectedItemsModified ); m_toolMgr->ProcessEvent( EVENTS::SelectedItemsModified );