aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--widgets/table/e-table-item.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/widgets/table/e-table-item.c b/widgets/table/e-table-item.c
index 12ef309c7c..5e1c669e53 100644
--- a/widgets/table/e-table-item.c
+++ b/widgets/table/e-table-item.c
@@ -817,10 +817,11 @@ eti_table_model_rows_deleted (ETableModel *table_model, int row, int count, ETab
{
if (!(GTK_OBJECT_FLAGS(eti) & GNOME_CANVAS_ITEM_REALIZED))
return;
+
eti->rows = e_table_model_row_count (eti->table_model);
if (eti->height_cache)
- memmove(eti->height_cache + row, eti->height_cache + row + count, (eti->rows - row - count) * sizeof(int));
+ memmove(eti->height_cache + row, eti->height_cache + row + count, (eti->rows - row) * sizeof(int));
eti->needs_compute_height = 1;
e_canvas_item_request_reflow (GNOME_CANVAS_ITEM (eti));