Fixed Push and Shove and ratsnest cooperation (tracks added by PNS are taken into account while calculating ratsnest).

This commit is contained in:
Maciej Suminski 2014-01-07 14:22:37 +01:00
parent 69cf8aa325
commit 75db0cebb7
2 changed files with 5 additions and 7 deletions

View File

@ -754,13 +754,12 @@ bool PNS_ROUTER::FixRoute( const VECTOR2I& aP, PNS_ITEM* aEndItem )
void PNS_ROUTER::StopRouting()
{
// Update the ratsnest with new changes
m_board->GetRatsnest()->Recalculate( m_currentNet );
if( !RoutingInProgress() )
return;
// highlightCurrent(false);
// Update the ratsnest
m_board->GetRatsnest()->Recalculate( m_currentNet );
EraseView();
m_state = IDLE;

View File

@ -369,7 +369,6 @@ void ROUTER_TOOL::startRouting()
}
}
if( m_router->RoutingInProgress() )
m_router->StopRouting();
ctls->SetAutoPan( false );