Fix leftover vias in shove mode

Fixes https://gitlab.com/kicad/code/kicad/-/issues/8597
This commit is contained in:
Jon Evans 2021-06-23 22:13:35 -04:00
parent 27e9750507
commit a7eb611744
1 changed files with 4 additions and 0 deletions

View File

@ -1083,6 +1083,10 @@ bool LINE_PLACER::SetLayer( int aLayer )
m_currentLayer = aLayer;
m_head.Line().Clear();
m_tail.Line().Clear();
m_last_head.Line().Clear();
m_head.RemoveVia();
m_tail.RemoveVia();
m_last_head.RemoveVia();
m_head.SetLayer( m_currentLayer );
m_tail.SetLayer( m_currentLayer );
Move( m_currentEnd, nullptr );