Fix leftover vias in shove mode
Fixes https://gitlab.com/kicad/code/kicad/-/issues/8597
This commit is contained in:
parent
27e9750507
commit
a7eb611744
|
@ -1083,6 +1083,10 @@ bool LINE_PLACER::SetLayer( int aLayer )
|
||||||
m_currentLayer = aLayer;
|
m_currentLayer = aLayer;
|
||||||
m_head.Line().Clear();
|
m_head.Line().Clear();
|
||||||
m_tail.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_head.SetLayer( m_currentLayer );
|
||||||
m_tail.SetLayer( m_currentLayer );
|
m_tail.SetLayer( m_currentLayer );
|
||||||
Move( m_currentEnd, nullptr );
|
Move( m_currentEnd, nullptr );
|
||||||
|
|
Loading…
Reference in New Issue