Run fix_route until routing ended in EndTrack

Should fix Bug 1424003, by making making sure the routing is completed when endtrack is triggered.
This commit is contained in:
Rohan Agrawal 2016-02-11 18:26:40 -08:00
parent 6c5b68a117
commit 31a6a4adf0
1 changed files with 5 additions and 2 deletions

View File

@ -602,7 +602,10 @@ void ROUTER_TOOL::performRouting()
}
else if( evt->IsAction( &ACT_EndTrack ) )
{
if( m_router->FixRoute( m_endSnapPoint, m_endItem ) )
bool still_routing = true;
while( still_routing ) {
still_routing = m_router->FixRoute( m_endSnapPoint, m_endItem );
}
break;
}