Keep BOARD_DESIGN_SETTINGS DRC marker exclusions up-to-date.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/17429

(manually cherry picked from commit 0598ca0f90)
This commit is contained in:
Jeff Young
2024-12-03 16:22:50 +00:00
parent a7d81c6aaa
commit fa8a9843b1
3 changed files with 31 additions and 23 deletions
@@ -611,9 +611,8 @@ bool WriteDRCReport( BOARD* aBoard, const wxString& aFileName, EDA_UNITS aUnits,
engine->RunTests( aUnits, aReportAllTrackErrors, false );
engine->ClearViolationHandler();
// now "resolve" the drc exclusions again because its the only way to set exclusion status on a marker
for( PCB_MARKER* marker : aBoard->ResolveDRCExclusions( false ) )
aBoard->Add( marker );
// Update the exclusion status on any excluded markers that still exist.
aBoard->ResolveDRCExclusions( false );
// TODO: Unify this with DIALOG_DRC::writeReport