aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/table/e-tree-model.c
diff options
context:
space:
mode:
authorJP Rosevear <jpr@helixcode.com>2000-12-05 23:58:04 +0800
committerJP Rosevear <jpr@src.gnome.org>2000-12-05 23:58:04 +0800
commit9e5420ee9df14ff7341a2b760ac20ff823e2afd4 (patch)
treeff456eec565a0199deaf60ebf25dc19eab1b7790 /widgets/table/e-tree-model.c
parent095eee40d5e1c8603db36ab4952a35b554012cb4 (diff)
downloadgsoc2013-evolution-9e5420ee9df14ff7341a2b760ac20ff823e2afd4.tar
gsoc2013-evolution-9e5420ee9df14ff7341a2b760ac20ff823e2afd4.tar.gz
gsoc2013-evolution-9e5420ee9df14ff7341a2b760ac20ff823e2afd4.tar.bz2
gsoc2013-evolution-9e5420ee9df14ff7341a2b760ac20ff823e2afd4.tar.lz
gsoc2013-evolution-9e5420ee9df14ff7341a2b760ac20ff823e2afd4.tar.xz
gsoc2013-evolution-9e5420ee9df14ff7341a2b760ac20ff823e2afd4.tar.zst
gsoc2013-evolution-9e5420ee9df14ff7341a2b760ac20ff823e2afd4.zip
Move the correct offset when memmoving. Patch provided by Richard Hult
2000-12-05 JP Rosevear <jpr@helixcode.com> * e-tree-model.c (e_tree_model_node_remove): Move the correct offset when memmoving. Patch provided by Richard Hult <rhult@hem.passagen.se>. svn path=/trunk/; revision=6795
Diffstat (limited to 'widgets/table/e-tree-model.c')
-rw-r--r--widgets/table/e-tree-model.c2
1 files changed, 1 insertions, 1 deletions
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);
}