From 3801a8adc09c696d9c3c656b2d90ef5edeb442f4 Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Fri, 25 Feb 2022 18:26:48 +0100 Subject: [PATCH] Eeschema: ensure ERC exclusions list is up to date before saving it in *.kicad_pro Fixes #10339 From master branch --- eeschema/eeschema_config.cpp | 2 +- eeschema/files-io.cpp | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/eeschema/eeschema_config.cpp b/eeschema/eeschema_config.cpp index 3e31952556..4778dc69c2 100644 --- a/eeschema/eeschema_config.cpp +++ b/eeschema/eeschema_config.cpp @@ -192,7 +192,7 @@ void SCH_EDIT_FRAME::SaveSettings( APP_SETTINGS_BASE* aCfg ) void SCH_BASE_FRAME::LoadSettings( APP_SETTINGS_BASE* aCfg ) { - wxCHECK_RET( aCfg, wxT( "Call to SCH_BASE_FRAME::SaveSettings with null settings" ) ); + wxCHECK_RET( aCfg, wxT( "Call to SCH_BASE_FRAME::LoadSettings with null settings" ) ); EDA_DRAW_FRAME::LoadSettings( aCfg ); diff --git a/eeschema/files-io.cpp b/eeschema/files-io.cpp index 87212c9713..e0b16f1a11 100644 --- a/eeschema/files-io.cpp +++ b/eeschema/files-io.cpp @@ -1080,6 +1080,7 @@ bool SCH_EDIT_FRAME::SaveProject( bool aSaveAs ) } else { + RecordERCExclusions(); // ensure ERC Exclusions list is up to date GetSettingsManager()->SaveProject(); }