diff --git a/pcbnew/tools/edit_tool.cpp b/pcbnew/tools/edit_tool.cpp index 75636ad832..3718a3dd6b 100644 --- a/pcbnew/tools/edit_tool.cpp +++ b/pcbnew/tools/edit_tool.cpp @@ -273,6 +273,9 @@ bool EDIT_TOOL::isRouterActive() const int EDIT_TOOL::Drag( const TOOL_EVENT& aEvent ) { + if( !m_toolMgr->GetTool() ) + return false; // don't drag when no router tool (i.e. fp editor) + if( m_toolMgr->GetTool()->IsToolActive() ) return false; // don't drag when router is already active