Remove selection from grid before deleting rows.
This commit is contained in:
parent
a8e73cf92c
commit
1e812b8b69
|
@ -597,6 +597,7 @@ void DIALOG_SYMBOL_PROPERTIES::OnEditSpiceModel( wxCommandEvent& event )
|
||||||
{
|
{
|
||||||
m_fields->erase( m_fields->begin() + ii );
|
m_fields->erase( m_fields->begin() + ii );
|
||||||
wxGridTableMessage msg( m_fields, wxGRIDTABLE_NOTIFY_ROWS_DELETED, ii, 1 );
|
wxGridTableMessage msg( m_fields, wxGRIDTABLE_NOTIFY_ROWS_DELETED, ii, 1 );
|
||||||
|
m_fieldsGrid->ClearSelection();
|
||||||
m_fieldsGrid->ProcessTableMessage( msg );
|
m_fieldsGrid->ProcessTableMessage( msg );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue