From 0417a6b4094130eac58a128acb70969594f4e36b Mon Sep 17 00:00:00 2001 From: Seth Hillbrand Date: Thu, 5 Mar 2020 15:01:43 -0800 Subject: [PATCH] PNS: Fix missing via on zero-length The current node needs to be kept for zero-length lines when placing a via. Fixes https://gitlab.com/kicad/code/kicad/issues/4005 --- pcbnew/router/pns_line_placer.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/pcbnew/router/pns_line_placer.cpp b/pcbnew/router/pns_line_placer.cpp index 15d18d0ba1..ac7d732c2c 100644 --- a/pcbnew/router/pns_line_placer.cpp +++ b/pcbnew/router/pns_line_placer.cpp @@ -1107,7 +1107,6 @@ bool LINE_PLACER::FixRoute( const VECTOR2I& aP, ITEM* aEndItem, bool aForceFinis return false; m_lastNode->Add( Clone( pl.Via() ) ); - m_lastNode = NULL; m_currentNode = NULL; m_idle = true;