Fix failure on multiple DRC runs via scripting

This commit is contained in:
Jan Mrázek 2023-08-03 14:55:14 +02:00 committed by Jon Evans
parent 9456fab435
commit 2d010278ad
1 changed files with 3 additions and 1 deletions

View File

@ -486,8 +486,10 @@ 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() )
if( fn_flp.FileExists() ) {
GFootprintTable.Clear();
GFootprintTable.Load( fn_flp.GetFullPath() );
}
wxString drcRulesPath = prj->AbsolutePath( fn.GetFullName() );