diff --git a/eeschema/dialogs/panel_sym_lib_table.cpp b/eeschema/dialogs/panel_sym_lib_table.cpp index 6b77511678..630bf3c009 100644 --- a/eeschema/dialogs/panel_sym_lib_table.cpp +++ b/eeschema/dialogs/panel_sym_lib_table.cpp @@ -755,9 +755,8 @@ void PANEL_SYM_LIB_TABLE::onConvertLegacyLibraries( wxCommandEvent& event ) if( relPath.IsEmpty() || (m_cur_grid == m_global_grid && relPath.Contains( "${KIPRJMOD}" ) ) ) relPath = newLib.GetFullPath(); - auto model = static_cast( m_cur_grid->GetTable() ); - model->SetValue( row, COL_URI, relPath ); - model->SetValue( row, COL_TYPE, kicadType ); + m_cur_grid->SetCellValue( row, COL_URI, relPath ); + m_cur_grid->SetCellValue( row, COL_TYPE, kicadType ); } else {