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
This commit is contained in:
Seth Hillbrand 2020-03-05 15:01:43 -08:00
parent 3d151ebd71
commit 0417a6b409
1 changed files with 0 additions and 1 deletions

View File

@ -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;