From a141ed3444d7ff1d77d810d5bc91c1ee6bfbf811 Mon Sep 17 00:00:00 2001 From: Tomasz Wlostowski Date: Wed, 17 Feb 2021 22:01:34 +0100 Subject: [PATCH] router: feed view size change events to the router engine --- pcbnew/router/router_tool.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pcbnew/router/router_tool.cpp b/pcbnew/router/router_tool.cpp index bcda86001e..a979866508 100644 --- a/pcbnew/router/router_tool.cpp +++ b/pcbnew/router/router_tool.cpp @@ -539,6 +539,12 @@ void ROUTER_TOOL::saveRouterDebugLog() void ROUTER_TOOL::handleCommonEvents( TOOL_EVENT& aEvent ) { + if( aEvent.Category() == TC_VIEW || aEvent.Category() == TC_MOUSE ) + { + auto viewAreaD = getView()->GetBoundary(); + m_router->SetVisibleViewArea( BOX2I( viewAreaD.GetOrigin(), viewAreaD.GetSize() ) ); + } + if( !aEvent.IsKeyPressed() ) return;