Use lock when clearing and loading libTables.

Also make sure it's re-indexed after loading.
This commit is contained in:
Jeff Young
2024-07-23 09:53:01 +00:00
parent e2bd76bdce
commit 0f099ac65e
8 changed files with 14 additions and 30 deletions
@@ -556,10 +556,9 @@ bool WriteDRCReport( BOARD* aBoard, const wxString& aFileName, EDA_UNITS aUnits,
// Load the global fp-lib-table otherwise we can't check the libs parity
wxFileName fn_flp = FP_LIB_TABLE::GetGlobalTableFileName();
if( fn_flp.FileExists() ) {
GFootprintTable.Clear();
if( fn_flp.FileExists() )
GFootprintTable.Load( fn_flp.GetFullPath() );
}
wxString drcRulesPath = prj->AbsolutePath( fn.GetFullName() );