From e950278637f79f4e995af541c2833116a980d29a Mon Sep 17 00:00:00 2001 From: Roberto Fernandez Bautista Date: Sat, 23 Oct 2021 18:53:10 +0100 Subject: [PATCH] Don't initiate a drag if the router is already active Fixes https://gitlab.com/kicad/code/kicad/-/issues/9277 --- pcbnew/tools/edit_tool.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pcbnew/tools/edit_tool.cpp b/pcbnew/tools/edit_tool.cpp index 5b976f2a17..14cccd3ca6 100644 --- a/pcbnew/tools/edit_tool.cpp +++ b/pcbnew/tools/edit_tool.cpp @@ -280,6 +280,9 @@ bool EDIT_TOOL::isRouterActive() const int EDIT_TOOL::Drag( const TOOL_EVENT& aEvent ) { + if( m_toolMgr->GetTool()->IsToolActive() ) + return false; // don't drag when router is already active + int mode = PNS::DM_ANY; if( aEvent.IsAction( &PCB_ACTIONS::dragFreeAngle ) )