diff --git a/pcbnew/router/router_tool.cpp b/pcbnew/router/router_tool.cpp index 1238d8626d..8d8984f8d1 100644 --- a/pcbnew/router/router_tool.cpp +++ b/pcbnew/router/router_tool.cpp @@ -607,14 +607,8 @@ void ROUTER_TOOL::saveRouterDebugLog() PROJECT* prj = m_iface->GetBoard()->GetProject(); prj->GetProjectFile().SaveAs( cwd, "pns" ); - std::vector added, removed; - auto tmpNode = m_router->GetUpdatedItems( removed, added ); - - if( !tmpNode ) - { - fclose( f ); - return; - } + std::vector 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 ); }