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(); PROJECT* prj = m_iface->GetBoard()->GetProject();
prj->GetProjectFile().SaveAs( cwd, "pns" ); prj->GetProjectFile().SaveAs( cwd, "pns" );
std::vector<PNS::ITEM*> added, removed; std::vector<PNS::ITEM*> added, removed, heads;
auto tmpNode = m_router->GetUpdatedItems( removed, added ); m_router->GetUpdatedItems( removed, added, heads );
if( !tmpNode )
{
fclose( f );
return;
}
for( auto item : removed ) for( auto item : removed )
{ {
@ -626,6 +620,11 @@ void ROUTER_TOOL::saveRouterDebugLog()
fprintf(f, "added %s\n", item->Format().c_str() ); fprintf(f, "added %s\n", item->Format().c_str() );
} }
for( auto item : heads )
{
fprintf(f, "head %s\n", item->Format().c_str() );
}
fclose( f ); fclose( f );
} }