From d6706c257c788cc2eb00f802d155f4c4f743ae33 Mon Sep 17 00:00:00 2001 From: Seth Hillbrand Date: Mon, 2 Mar 2020 16:21:34 -0800 Subject: [PATCH] PNS: clear via when fixing route When fixing the route, we need to clear the via to avoid re-placing it on each future click. Fixes #3966 | https://gitlab.com/kicad/code/kicad/issues/3966 --- pcbnew/router/pns_line_placer.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pcbnew/router/pns_line_placer.cpp b/pcbnew/router/pns_line_placer.cpp index 1f0d005894..99827a52be 100644 --- a/pcbnew/router/pns_line_placer.cpp +++ b/pcbnew/router/pns_line_placer.cpp @@ -1188,6 +1188,8 @@ bool LINE_PLACER::FixRoute( const VECTOR2I& aP, ITEM* aEndItem, bool aForceFinis m_head.Line().Clear(); m_tail.Line().Clear(); + m_head.RemoveVia(); + m_tail.RemoveVia(); m_currentNode = m_lastNode; m_lastNode = m_lastNode->Branch();