eeschema: dialog_edit_component: fixed removing negative number of rows from grid.
This commit is contained in:
parent
f17f10d2a6
commit
0aa6e43783
|
@ -519,7 +519,7 @@ void DIALOG_EDIT_COMPONENT_IN_LIBRARY::OnEditSpiceModel( wxCommandEvent& event )
|
|||
}
|
||||
else if( diff < 0 )
|
||||
{
|
||||
wxGridTableMessage msg( m_fields, wxGRIDTABLE_NOTIFY_ROWS_DELETED, 0, diff );
|
||||
wxGridTableMessage msg( m_fields, wxGRIDTABLE_NOTIFY_ROWS_DELETED, 0, -diff );
|
||||
m_grid->ProcessTableMessage( msg );
|
||||
}
|
||||
|
||||
|
|
|
@ -293,7 +293,7 @@ void DIALOG_EDIT_COMPONENT_IN_SCHEMATIC::OnEditSpiceModel( wxCommandEvent& event
|
|||
}
|
||||
else if( diff < 0 )
|
||||
{
|
||||
wxGridTableMessage msg( m_fields, wxGRIDTABLE_NOTIFY_ROWS_DELETED, 0, diff );
|
||||
wxGridTableMessage msg( m_fields, wxGRIDTABLE_NOTIFY_ROWS_DELETED, 0, -diff );
|
||||
m_grid->ProcessTableMessage( msg );
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue