treemodelfilter: bring if-condition in sync

Bring the if-condition in sync with the other if-conditions in the
function where the "path" variable is used.
This commit is contained in:
Kristian Rietveld 2011-09-11 20:16:34 +02:00
parent 7cff8c4403
commit 7c0526e9b2

View File

@ -1650,7 +1650,7 @@ gtk_tree_model_filter_remove_elt_from_level (GtkTreeModelFilter *filter,
iter.user_data = level;
iter.user_data2 = elt;
if (orig_level_ext_ref_count > 0)
if (!parent || orig_level_ext_ref_count > 0)
path = gtk_tree_model_get_path (GTK_TREE_MODEL (filter), &iter);
else
/* If the level is not visible, the parent is potentially invisible