From 9e5420ee9df14ff7341a2b760ac20ff823e2afd4 Mon Sep 17 00:00:00 2001 From: JP Rosevear Date: Tue, 5 Dec 2000 15:58:04 +0000 Subject: Move the correct offset when memmoving. Patch provided by Richard Hult 2000-12-05 JP Rosevear * e-tree-model.c (e_tree_model_node_remove): Move the correct offset when memmoving. Patch provided by Richard Hult . svn path=/trunk/; revision=6795 --- widgets/table/e-tree-model.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/widgets/table/e-tree-model.c b/widgets/table/e-tree-model.c index a38e24ec62..e277f1d0d4 100644 --- a/widgets/table/e-tree-model.c +++ b/widgets/table/e-tree-model.c @@ -1085,7 +1085,7 @@ e_tree_model_node_remove (ETreeModel *etree, ETreePath *path) } else { memmove(&g_array_index(priv->row_array, ETreePath *, base), &g_array_index(priv->row_array, ETreePath *, base+visible), - (visible) * sizeof(ETreePath *)); + (priv->row_array->len - (base+visible)) * sizeof(ETreePath *)); g_array_set_size(priv->row_array, priv->row_array->len - visible); } -- cgit