From ff668968f3c9061dabd09b1f899ffe230ff3e5b8 Mon Sep 17 00:00:00 2001 From: Seth Hillbrand Date: Sat, 24 Nov 2018 11:50:51 -0800 Subject: [PATCH] pcbnew: Changing the track width while routing When changing the track width, we need to allow that the track's route will change based on DRC, so force a move without changing position. Fixes: lp:1785057 * https://bugs.launchpad.net/kicad/+bug/1785057 --- pcbnew/router/router_tool.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pcbnew/router/router_tool.cpp b/pcbnew/router/router_tool.cpp index 637341b046..0024b67a8e 100644 --- a/pcbnew/router/router_tool.cpp +++ b/pcbnew/router/router_tool.cpp @@ -1228,5 +1228,9 @@ int ROUTER_TOOL::onTrackViaSizeChanged( const TOOL_EVENT& aEvent ) sizes.ImportCurrent( board()->GetDesignSettings() ); m_router->UpdateSizes( sizes ); + //Changing the track width can affect the placement, so call the + // move routine without changing the destination + m_router->Move( m_endSnapPoint, m_endItem ); + return 0; }