From 0555bbc65633026556d0dfa13055527c5ad77d59 Mon Sep 17 00:00:00 2001 From: John Beard Date: Mon, 11 Jun 2018 18:13:15 +0100 Subject: [PATCH] Pass PCB display settings to PNS router tool This allows the tool to set display options like the clearance. Fixes: lp:1766836 * https://bugs.launchpad.net/kicad/+bug/1766836 --- pcbnew/router/pns_tool_base.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/pcbnew/router/pns_tool_base.cpp b/pcbnew/router/pns_tool_base.cpp index ae12f478ca..b8b05952d3 100644 --- a/pcbnew/router/pns_tool_base.cpp +++ b/pcbnew/router/pns_tool_base.cpp @@ -101,6 +101,7 @@ void TOOL_BASE::Reset( RESET_REASON aReason ) m_iface->SetBoard( board() ); m_iface->SetView( getView() ); m_iface->SetHostTool( this ); + m_iface->SetDisplayOptions( (PCB_DISPLAY_OPTIONS*) frame()->GetDisplayOptions() ); m_router = new ROUTER; m_router->SetInterface( m_iface );