From e8bcdfed2997e18ca9a6b8567ee58d72a0e27283 Mon Sep 17 00:00:00 2001 From: Marek Roszko Date: Fri, 5 Feb 2021 07:12:11 -0500 Subject: [PATCH] Revert 2faf721360cd48788e28b806e0f62fe024472a4a Fix #7323 --- eeschema/dialogs/panel_sym_lib_table.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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 {