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 )
{
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 );