router: follow up ROUTER::GetUpdatedItems() API changes in the ROUTER_TOOL

This commit is contained in:
Tomasz Wlostowski 2023-01-09 23:22:32 +01:00
parent d07d6c9a30
commit 65def26b4d
1 changed files with 7 additions and 8 deletions

View File

@ -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 );
}