Don't initiate a drag if the router is already active

Fixes https://gitlab.com/kicad/code/kicad/-/issues/9277
This commit is contained in:
Roberto Fernandez Bautista 2021-10-23 18:53:10 +01:00
parent 908e892ab8
commit e950278637
1 changed files with 3 additions and 0 deletions

View File

@ -280,6 +280,9 @@ bool EDIT_TOOL::isRouterActive() const
int EDIT_TOOL::Drag( const TOOL_EVENT& aEvent )
{
if( m_toolMgr->GetTool<ROUTER_TOOL>()->IsToolActive() )
return false; // don't drag when router is already active
int mode = PNS::DM_ANY;
if( aEvent.IsAction( &PCB_ACTIONS::dragFreeAngle ) )