PNS: hide preview via when disabled.

This commit is contained in:
Maciej Suminski 2015-07-07 18:36:41 +02:00
parent 66778e1b00
commit e7626a8592
1 changed files with 3 additions and 0 deletions

View File

@ -84,6 +84,9 @@ bool PNS_LINE_PLACER::ToggleVia( bool aEnabled )
{ {
m_placingVia = aEnabled; m_placingVia = aEnabled;
if( !aEnabled )
m_head.RemoveVia();
if( !m_idle ) if( !m_idle )
Move( m_currentEnd, NULL ); Move( m_currentEnd, NULL );