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:
parent
908e892ab8
commit
e950278637
|
@ -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 ) )
|
||||
|
|
Loading…
Reference in New Issue