diff --git a/eeschema/sch_edit_frame.cpp b/eeschema/sch_edit_frame.cpp index b3049a239e..58a3c42a51 100644 --- a/eeschema/sch_edit_frame.cpp +++ b/eeschema/sch_edit_frame.cpp @@ -38,6 +38,7 @@ #include #include #include +#include #include #include @@ -1478,10 +1479,15 @@ void SCH_EDIT_FRAME::RecalculateConnections() { SCH_SHEET_LIST list( g_RootSheet ); + PROF_COUNTER timer; + // Ensure schematic graph is accurate for( const auto& sheet : list ) SchematicCleanUp( false, sheet.LastScreen() ); + timer.Stop(); + wxLogTrace( "CONN_PROFILE", "SchematicCleanUp() %0.4f ms", timer.msecs() ); + g_ConnectionGraph->Recalculate( list, true ); }