From 35fa857fd8637c930122b7d9827270d0c27379a0 Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Mon, 5 Oct 2020 23:16:37 +0100 Subject: [PATCH] Make sure router tool passes events it doesn't handle. Fixes undo/redo when router tool is active but not routing. --- pcbnew/router/router_tool.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pcbnew/router/router_tool.cpp b/pcbnew/router/router_tool.cpp index c491f6abdc..06ea920d13 100644 --- a/pcbnew/router/router_tool.cpp +++ b/pcbnew/router/router_tool.cpp @@ -1182,6 +1182,10 @@ int ROUTER_TOOL::MainLoop( const TOOL_EVENT& aEvent ) { m_menu.ShowContextMenu( selection() ); } + else + { + evt->SetPassEvent(); + } if( m_cancelled ) { @@ -1252,6 +1256,10 @@ void ROUTER_TOOL::performDragging( int aMode ) break; } + else + { + evt->SetPassEvent(); + } handleCommonEvents( *evt ); }