Commit 75db0ceb authored by Maciej Suminski's avatar Maciej Suminski

Fixed Push and Shove and ratsnest cooperation (tracks added by PNS are taken...

Fixed Push and Shove and ratsnest cooperation (tracks added by PNS are taken into account while calculating ratsnest).
parent 69cf8aa3
...@@ -263,7 +263,7 @@ void PNS_ROUTER::SyncWorld() ...@@ -263,7 +263,7 @@ void PNS_ROUTER::SyncWorld()
if( type == PCB_TRACE_T ) if( type == PCB_TRACE_T )
item = syncTrack( t ); item = syncTrack( t );
else if( type == PCB_VIA_T ) else if( type == PCB_VIA_T )
item = syncVia( static_cast <SEGVIA*>(t) ); item = syncVia( static_cast<SEGVIA*>( t ) );
if( item ) if( item )
m_world->Add( item ); m_world->Add( item );
...@@ -754,13 +754,12 @@ bool PNS_ROUTER::FixRoute( const VECTOR2I& aP, PNS_ITEM* aEndItem ) ...@@ -754,13 +754,12 @@ bool PNS_ROUTER::FixRoute( const VECTOR2I& aP, PNS_ITEM* aEndItem )
void PNS_ROUTER::StopRouting() void PNS_ROUTER::StopRouting()
{ {
// Update the ratsnest with new changes
m_board->GetRatsnest()->Recalculate( m_currentNet );
if( !RoutingInProgress() ) if( !RoutingInProgress() )
return; return;
// highlightCurrent(false);
// Update the ratsnest
m_board->GetRatsnest()->Recalculate( m_currentNet );
EraseView(); EraseView();
m_state = IDLE; m_state = IDLE;
......
...@@ -369,7 +369,6 @@ void ROUTER_TOOL::startRouting() ...@@ -369,7 +369,6 @@ void ROUTER_TOOL::startRouting()
} }
} }
if( m_router->RoutingInProgress() )
m_router->StopRouting(); m_router->StopRouting();
ctls->SetAutoPan( false ); ctls->SetAutoPan( false );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment