aboutsummaryrefslogtreecommitdiffstats
path: root/widgets
diff options
context:
space:
mode:
Diffstat (limited to 'widgets')
-rw-r--r--widgets/table/e-table-item.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/widgets/table/e-table-item.c b/widgets/table/e-table-item.c
index ac73bc1f9a..8b64d06d2d 100644
--- a/widgets/table/e-table-item.c
+++ b/widgets/table/e-table-item.c
@@ -1169,13 +1169,9 @@ eti_table_model_rows_deleted (ETableModel *table_model, int row, int count, ETab
return;
}
- g_assert (eti->rows == -1 || row + count <= eti->rows);
-
eti->rows = e_table_model_row_count (eti->table_model);
- g_assert (row <= eti->rows);
-
- if (eti->height_cache) {
+ if (eti->height_cache && (eti->rows > row)) {
memmove(eti->height_cache + row, eti->height_cache + row + count, (eti->rows - row) * sizeof(int));
}