From 63690d4a0b3af6af58ca5ee6fe94a2ebf7020e2f Mon Sep 17 00:00:00 2001 From: Mike Williams Date: Mon, 14 Aug 2023 08:36:49 -0400 Subject: [PATCH] Symbol Fields Table: fix broken delete Fixes: https://gitlab.com/kicad/code/kicad/-/issues/15405 --- eeschema/dialogs/dialog_symbol_fields_table.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/eeschema/dialogs/dialog_symbol_fields_table.cpp b/eeschema/dialogs/dialog_symbol_fields_table.cpp index 663571a10d..5813801b2e 100644 --- a/eeschema/dialogs/dialog_symbol_fields_table.cpp +++ b/eeschema/dialogs/dialog_symbol_fields_table.cpp @@ -687,8 +687,7 @@ void DIALOG_SYMBOL_FIELDS_TABLE::OnRemoveField( wxCommandEvent& event ) m_renameFieldButton->Enable( false ); } - wxGridTableMessage msg( m_dataModel, wxGRIDTABLE_NOTIFY_COLS_DELETED, - m_fieldsCtrl->GetItemCount(), 1 ); + wxGridTableMessage msg( m_dataModel, wxGRIDTABLE_NOTIFY_COLS_DELETED, col, 1 ); m_grid->ProcessTableMessage( msg );