Remove selection from grid before deleting rows.

This commit is contained in:
Jeff Young 2022-12-15 14:40:57 +00:00
parent a8e73cf92c
commit 1e812b8b69
1 changed files with 1 additions and 0 deletions

View File

@ -597,6 +597,7 @@ void DIALOG_SYMBOL_PROPERTIES::OnEditSpiceModel( wxCommandEvent& event )
{
m_fields->erase( m_fields->begin() + ii );
wxGridTableMessage msg( m_fields, wxGRIDTABLE_NOTIFY_ROWS_DELETED, ii, 1 );
m_fieldsGrid->ClearSelection();
m_fieldsGrid->ProcessTableMessage( msg );
}
}