Finish track with 'activate router hotkey'

Fixes: lp:1790552
* https://bugs.launchpad.net/kicad/+bug/1790552
This commit is contained in:
Franck78 2018-09-04 09:10:15 +02:00 committed by Maciej Suminski
parent dd3d10d9ce
commit 009dfa411f
1 changed files with 2 additions and 2 deletions

View File

@ -799,7 +799,7 @@ void ROUTER_TOOL::performRouting()
updateEndItem( *evt );
m_router->Move( m_endSnapPoint, m_endItem );
}
else if( evt->IsClick( BUT_LEFT ) )
else if( evt->IsClick( BUT_LEFT ) || evt->IsAction( &ACT_NewTrack ) )
{
updateEndItem( *evt );
bool needLayerSwitch = m_router->IsPlacingVia();