From 4cf4600a2328177a73f9da57cfb2da82d57ead0a Mon Sep 17 00:00:00 2001 From: Seth Hillbrand Date: Thu, 17 Jan 2019 19:33:47 -0800 Subject: [PATCH] pcbnew: Discard delete action when routing Prevent the action from being handled on the next transition. Fixes: lp:1810611 * https://bugs.launchpad.net/kicad/+bug/1810611 --- pcbnew/tools/edit_tool.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pcbnew/tools/edit_tool.cpp b/pcbnew/tools/edit_tool.cpp index 44d3b18a4b..8c3fe63755 100644 --- a/pcbnew/tools/edit_tool.cpp +++ b/pcbnew/tools/edit_tool.cpp @@ -880,7 +880,7 @@ int EDIT_TOOL::Remove( const TOOL_EVENT& aEvent ) // Do not delete items while actively routing. if( routerTool && routerTool->Router() && routerTool->Router()->RoutingInProgress() ) - return 0; + return 1; std::vector lockedItems;