diff options
author | Matthias Clasen <mclasen@redhat.com> | 2007-09-09 19:48:22 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2007-09-09 19:48:22 +0000 |
commit | 5c4d0d697def00f674c047bb2b6a03cd37281d97 (patch) | |
tree | 8db3bcfa9d59c1b7557be7a1873ba046c21caf4d /gtk/gtktreemodelsort.c | |
parent | 57e8bdcb544526930c8fee8a8fec8ea2070db31b (diff) | |
download | gtk+-5c4d0d697def00f674c047bb2b6a03cd37281d97.tar.gz |
Don't assume that a path of depth 0 has no indices. (#467324, Szilard
2007-09-09 Matthias Clasen <mclasen@redhat.com>
* gtk/gtktreemodelfilter.c (gtk_tree_model_filter_rows_reordered):
* gtk/gtktreemodelsort.c (gtk_tree_model_sort_rows_reordered): Don't
assume that a path of depth 0 has no indices. (#467324, Szilard
Pfeiffer)
svn path=/trunk/; revision=18770
Diffstat (limited to 'gtk/gtktreemodelsort.c')
-rw-r--r-- | gtk/gtktreemodelsort.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gtktreemodelsort.c b/gtk/gtktreemodelsort.c index f0d6e0467b..9cdfb65c71 100644 --- a/gtk/gtktreemodelsort.c +++ b/gtk/gtktreemodelsort.c @@ -807,7 +807,7 @@ gtk_tree_model_sort_rows_reordered (GtkTreeModel *s_model, g_return_if_fail (new_order != NULL); - if (s_path == NULL || gtk_tree_path_get_indices (s_path) == NULL) + if (s_path == NULL || gtk_tree_path_get_depth (s_path) = 0) { if (tree_model_sort->root == NULL) return; |