diff --git a/pcbnew/drc/drc_report.cpp b/pcbnew/drc/drc_report.cpp index f01c118ffb..6971379a6b 100644 --- a/pcbnew/drc/drc_report.cpp +++ b/pcbnew/drc/drc_report.cpp @@ -153,7 +153,7 @@ bool DRC_REPORT::WriteJsonReport( const wxString& aFullFileName ) for( int i = 0; i < m_fpWarningsProvider->GetCount(); ++i ) { - const std::shared_ptr& item = m_ratsnestProvider->GetItem( i ); + const std::shared_ptr& item = m_fpWarningsProvider->GetItem( i ); SEVERITY severity = bds.GetSeverity( item->GetErrorCode() ); RC_JSON::VIOLATION violation;