ERC dialog: make "Save..." button write listed violations

the ERC dialog's save action always wrote (just) errors and warnings to
the report, regardless of the violations listed in the dialog based on
the checkboxes. that was different from the DRC dialog's behavior, which
writes the selected severities to the report. this change makes the ERC
dialog's "Save..." button behave the same as the DRC dialog's.


(cherry picked from commit 42d202b6cf)

Co-authored-by: Bernhard Kirchen <schlimmchen@posteo.net>
This commit is contained in:
Mark Roszko
2026-03-13 11:07:29 +00:00
parent a0beba756f
commit b2bfa24c98
+1 -1
View File
@@ -1081,7 +1081,7 @@ void DIALOG_ERC::OnSaveReport( wxCommandEvent& aEvent )
fn.MakeAbsolute( prj_path );
}
ERC_REPORT reportWriter( &m_parent->Schematic(), m_parent->GetUserUnits() );
ERC_REPORT reportWriter( &m_parent->Schematic(), m_parent->GetUserUnits(), m_markerProvider );
bool success = false;
if( fn.GetExt() == FILEEXT::JsonFileExtension )