[gtk+/gtk-3-10] treemodelfilter: Fix using wrong path on row-deleted



commit c20721fd203d6630d3e6e34acd7cab3362162396
Author: Olivier Brunel <jjk jjacky com>
Date:   Thu Jan 16 15:23:20 2014 +0100

    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>

 gtk/gtktreemodelfilter.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtktreemodelfilter.c b/gtk/gtktreemodelfilter.c
index e8fd57c..3894ae4 100644
--- a/gtk/gtktreemodelfilter.c
+++ b/gtk/gtktreemodelfilter.c
@@ -2697,7 +2697,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);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]