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
This commit is contained in:
Seth Hillbrand 2020-03-02 16:21:34 -08:00
parent 386147628e
commit d6706c257c
1 changed files with 2 additions and 0 deletions

View File

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