aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--widgets/table/e-table-sorted.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/widgets/table/e-table-sorted.c b/widgets/table/e-table-sorted.c
index c8c874feaf..71cbce1671 100644
--- a/widgets/table/e-table-sorted.c
+++ b/widgets/table/e-table-sorted.c
@@ -234,7 +234,7 @@ ets_proxy_model_rows_deleted (ETableSubset *etss, ETableModel *source, int row,
for (j = 0; j < count; j++) {
for (i = 0; i < etss->n_map; i++){
- if (etss->map_table[i] == row) {
+ if (etss->map_table[i] == row + j) {
e_table_model_pre_change (etm);
memmove (etss->map_table + i, etss->map_table + i + 1, (etss->n_map - i - 1) * sizeof(int));
etss->n_map --;