summaryrefslogtreecommitdiff
path: root/gtk/gtktreemodelfilter.c
diff options
context:
space:
mode:
authorOlivier Brunel <jjk@jjacky.com>2014-01-16 15:23:20 +0100
committerMatthias Clasen <mclasen@redhat.com>2014-03-26 20:40:50 -0400
commit5c019bde1518cfda59797b7c0f74094cd67d96bf (patch)
treeb941b2e729b8f246868c4355e85acf5860fb97ff /gtk/gtktreemodelfilter.c
parent75b0180829b21ef345ac54a33179cae0d4affa34 (diff)
downloadgtk+-5c019bde1518cfda59797b7c0f74094cd67d96bf.tar.gz
treemodelfilter: Fix using wrong path on row-deleted
A "typo" led to using a wrong GtkTreePath when converting the path of the virtual root to check the ancestors, which would lead to either no checks being performed, or maybe segfaulting when using an invalid path as result. https://bugzilla.gnome.org/show_bug.cgi?id=722058 Signed-off-by: Olivier Brunel <jjk@jjacky.com>
Diffstat (limited to 'gtk/gtktreemodelfilter.c')
-rw-r--r--gtk/gtktreemodelfilter.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gtktreemodelfilter.c b/gtk/gtktreemodelfilter.c
index 7e4a8716ef..8844d9f278 100644
--- a/gtk/gtktreemodelfilter.c
+++ b/gtk/gtktreemodelfilter.c
@@ -2693,7 +2693,7 @@ gtk_tree_model_filter_row_deleted (GtkTreeModel *c_model,
GtkTreePath *real_path;
real_path = gtk_tree_model_filter_remove_root (c_path,
- filter->priv->root);
+ filter->priv->virtual_root);
if (real_path)
{
gtk_tree_model_filter_check_ancestors (filter, real_path);