Blame SOURCES/0001-treemodelfilter-Fix-using-wrong-path-on-row-deleted.patch
|
|
0fe339 |
From 5c019bde1518cfda59797b7c0f74094cd67d96bf Mon Sep 17 00:00:00 2001
|
|
|
0fe339 |
From: Olivier Brunel <jjk@jjacky.com>
|
|
|
0fe339 |
Date: Thu, 16 Jan 2014 15:23:20 +0100
|
|
|
0fe339 |
Subject: [PATCH] treemodelfilter: Fix using wrong path on row-deleted
|
|
|
0fe339 |
|
|
|
0fe339 |
A "typo" led to using a wrong GtkTreePath when converting the path of the
|
|
|
0fe339 |
virtual root to check the ancestors, which would lead to either no checks being
|
|
|
0fe339 |
performed, or maybe segfaulting when using an invalid path as result.
|
|
|
0fe339 |
|
|
|
0fe339 |
https://bugzilla.gnome.org/show_bug.cgi?id=722058
|
|
|
0fe339 |
Signed-off-by: Olivier Brunel <jjk@jjacky.com>
|
|
|
0fe339 |
---
|
|
|
0fe339 |
gtk/gtktreemodelfilter.c | 2 +-
|
|
|
0fe339 |
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
0fe339 |
|
|
|
0fe339 |
diff --git a/gtk/gtktreemodelfilter.c b/gtk/gtktreemodelfilter.c
|
|
|
0fe339 |
index 7e4a871..8844d9f 100644
|
|
|
0fe339 |
--- a/gtk/gtktreemodelfilter.c
|
|
|
0fe339 |
+++ b/gtk/gtktreemodelfilter.c
|
|
|
0fe339 |
@@ -2693,7 +2693,7 @@ gtk_tree_model_filter_row_deleted (GtkTreeModel *c_model,
|
|
|
0fe339 |
GtkTreePath *real_path;
|
|
|
0fe339 |
|
|
|
0fe339 |
real_path = gtk_tree_model_filter_remove_root (c_path,
|
|
|
0fe339 |
- filter->priv->root);
|
|
|
0fe339 |
+ filter->priv->virtual_root);
|
|
|
0fe339 |
if (real_path)
|
|
|
0fe339 |
{
|
|
|
0fe339 |
gtk_tree_model_filter_check_ancestors (filter, real_path);
|
|
|
0fe339 |
--
|
|
|
0fe339 |
2.1.0
|
|
|
0fe339 |
|