Keep BOARD_DESIGN_SETTINGS DRC marker exclusions up-to-date.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/17429
This commit is contained in:
Jeff Young
2024-03-17 16:29:24 +00:00
parent 797ab998cc
commit 0598ca0f90
4 changed files with 66 additions and 30 deletions
@@ -605,9 +605,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