From 1273682db1433dbd864f74a4cdd40da821129e3f Mon Sep 17 00:00:00 2001 From: Christopher James Lahey Date: Sat, 1 Sep 2001 01:44:58 +0000 Subject: Fix this memmove. We've already subtracted the count from eti->rows. 2001-08-31 Christopher James Lahey * e-table-item.c (eti_table_model_rows_deleted): Fix this memmove. We've already subtracted the count from eti->rows. svn path=/trunk/; revision=12550 --- widgets/table/e-table-item.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'widgets') 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)); -- cgit v1.2.3