aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/table
diff options
context:
space:
mode:
Diffstat (limited to 'widgets/table')
-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);
}