From c4b24c895e0a351315b8dea294983bbaf2b8dfc1 Mon Sep 17 00:00:00 2001 From: Christopher James Lahey Date: Mon, 27 Aug 2001 15:32:14 +0000 Subject: Fixed this memmove to subtract the count as well as the row for the number 2001-08-27 Christopher James Lahey * e-table-item.c (eti_table_model_rows_deleted): Fixed this memmove to subtract the count as well as the row for the number of rows to move. svn path=/trunk/; revision=12482 --- widgets/table/e-table-item.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'widgets') diff --git a/widgets/table/e-table-item.c b/widgets/table/e-table-item.c index 4132eaf969..12ef309c7c 100644 --- a/widgets/table/e-table-item.c +++ b/widgets/table/e-table-item.c @@ -820,7 +820,7 @@ eti_table_model_rows_deleted (ETableModel *table_model, int row, int count, ETab 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) * sizeof(int)); + memmove(eti->height_cache + row, eti->height_cache + row + count, (eti->rows - row - count) * sizeof(int)); eti->needs_compute_height = 1; e_canvas_item_request_reflow (GNOME_CANVAS_ITEM (eti)); -- cgit