[gtk+] treemodelfilter: bring if-condition in sync



commit 7c0526e9b24beb0d08d3187377324a83cdc3b6a7
Author: Kristian Rietveld <kris gtk org>
Date:   Sun Sep 11 20:16:34 2011 +0200

    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.

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



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