Fix crash writing json drc report

This commit is contained in:
Marek Roszko 2024-02-11 17:36:15 -05:00
parent b5982f7319
commit e51ddc52b7
1 changed files with 1 additions and 1 deletions

View File

@ -153,7 +153,7 @@ bool DRC_REPORT::WriteJsonReport( const wxString& aFullFileName )
for( int i = 0; i < m_fpWarningsProvider->GetCount(); ++i )
{
const std::shared_ptr<RC_ITEM>& item = m_ratsnestProvider->GetItem( i );
const std::shared_ptr<RC_ITEM>& item = m_fpWarningsProvider->GetItem( i );
SEVERITY severity = bds.GetSeverity( item->GetErrorCode() );
RC_JSON::VIOLATION violation;