Clear selection before sending table msg (KICAD-KWE).
(cherry picked from commit a3bf095387)
This commit is contained in:
@@ -768,7 +768,9 @@ void DIALOG_LIB_SYMBOL_PROPERTIES::OnEditSpiceModel( wxCommandEvent& event )
|
||||
|
||||
if( !found )
|
||||
{
|
||||
m_grid->ClearSelection();
|
||||
m_fields->erase( m_fields->begin() + ii );
|
||||
|
||||
wxGridTableMessage msg( m_fields, wxGRIDTABLE_NOTIFY_ROWS_DELETED, ii, 1 );
|
||||
m_grid->ProcessTableMessage( msg );
|
||||
}
|
||||
|
||||
@@ -610,9 +610,10 @@ void DIALOG_SYMBOL_PROPERTIES::OnEditSpiceModel( wxCommandEvent& event )
|
||||
|
||||
if( !found )
|
||||
{
|
||||
m_fields->erase( m_fields->begin() + ii );
|
||||
wxGridTableMessage msg( m_fields, wxGRIDTABLE_NOTIFY_ROWS_DELETED, ii, 1 );
|
||||
m_fieldsGrid->ClearSelection();
|
||||
m_fields->erase( m_fields->begin() + ii );
|
||||
|
||||
wxGridTableMessage msg( m_fields, wxGRIDTABLE_NOTIFY_ROWS_DELETED, ii, 1 );
|
||||
m_fieldsGrid->ProcessTableMessage( msg );
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user