router: follow up ROUTER::GetUpdatedItems() API changes in the ROUTER_TOOL
This commit is contained in:
parent
d07d6c9a30
commit
65def26b4d
|
@ -607,14 +607,8 @@ void ROUTER_TOOL::saveRouterDebugLog()
|
|||
PROJECT* prj = m_iface->GetBoard()->GetProject();
|
||||
prj->GetProjectFile().SaveAs( cwd, "pns" );
|
||||
|
||||
std::vector<PNS::ITEM*> added, removed;
|
||||
auto tmpNode = m_router->GetUpdatedItems( removed, added );
|
||||
|
||||
if( !tmpNode )
|
||||
{
|
||||
fclose( f );
|
||||
return;
|
||||
}
|
||||
std::vector<PNS::ITEM*> added, removed, heads;
|
||||
m_router->GetUpdatedItems( removed, added, heads );
|
||||
|
||||
for( auto item : removed )
|
||||
{
|
||||
|
@ -626,6 +620,11 @@ void ROUTER_TOOL::saveRouterDebugLog()
|
|||
fprintf(f, "added %s\n", item->Format().c_str() );
|
||||
}
|
||||
|
||||
for( auto item : heads )
|
||||
{
|
||||
fprintf(f, "head %s\n", item->Format().c_str() );
|
||||
}
|
||||
|
||||
fclose( f );
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue