mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-26 21:51:08 +00:00
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>
This commit is contained in:
parent
75b0180829
commit
5c019bde15
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user