aboutsummaryrefslogtreecommitdiffstats
path: root/widgets
diff options
context:
space:
mode:
authorChristopher James Lahey <clahey@ximian.com>2001-09-01 09:44:58 +0800
committerChris Lahey <clahey@src.gnome.org>2001-09-01 09:44:58 +0800
commit1273682db1433dbd864f74a4cdd40da821129e3f (patch)
treebffc50b8e65e4fcb6bcbb03d9e6290396fa8c4f7 /widgets
parente137371494ac61c6dc94cb58ee35a5d2ef0a0123 (diff)
downloadgsoc2013-evolution-1273682db1433dbd864f74a4cdd40da821129e3f.tar
gsoc2013-evolution-1273682db1433dbd864f74a4cdd40da821129e3f.tar.gz
gsoc2013-evolution-1273682db1433dbd864f74a4cdd40da821129e3f.tar.bz2
gsoc2013-evolution-1273682db1433dbd864f74a4cdd40da821129e3f.tar.lz
gsoc2013-evolution-1273682db1433dbd864f74a4cdd40da821129e3f.tar.xz
gsoc2013-evolution-1273682db1433dbd864f74a4cdd40da821129e3f.tar.zst
gsoc2013-evolution-1273682db1433dbd864f74a4cdd40da821129e3f.zip
Fix this memmove. We've already subtracted the count from eti->rows.
2001-08-31 Christopher James Lahey <clahey@ximian.com> * 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
Diffstat (limited to 'widgets')
-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));