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();
|
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 );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue