diff options
Diffstat (limited to 'widgets/table/e-table.c')
-rw-r--r-- | widgets/table/e-table.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/widgets/table/e-table.c b/widgets/table/e-table.c index ca26678607..e2f7edec5e 100644 --- a/widgets/table/e-table.c +++ b/widgets/table/e-table.c @@ -394,7 +394,10 @@ et_table_cell_changed (ETableModel *table_model, int view_col, int row, ETable * static void et_table_row_inserted (ETableModel *table_model, int row, ETable *et) { + int row_count = e_table_model_row_count(table_model); if (!et->need_rebuild) { + if (row != row_count - 1) + e_table_group_increment(et->group, row, 1); e_table_group_add (et->group, row); } } @@ -402,8 +405,11 @@ et_table_row_inserted (ETableModel *table_model, int row, ETable *et) static void et_table_row_deleted (ETableModel *table_model, int row, ETable *et) { + int row_count = e_table_model_row_count(table_model); if (!et->need_rebuild) { e_table_group_remove (et->group, row); + if (row != row_count - 1) + e_table_group_decrement(et->group, row, 1); } } |