From c4d909a3661d41ecaf7cd1fb9ad0a98f70808296 Mon Sep 17 00:00:00 2001 From: Peter Williams Date: Tue, 14 Aug 2001 14:33:02 +0000 Subject: Workaround for Ximian bug #6795. Will prevent a crash and doesn't seem to 2001-08-14 Peter Williams * e-tree-selection-model.c (etsm_selected_count_recurse): Workaround for Ximian bug #6795. Will prevent a crash and doesn't seem to cause any problems, but the underlying problem still exists. svn path=/trunk/; revision=12010 --- widgets/table/e-tree-selection-model.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/widgets/table/e-tree-selection-model.c b/widgets/table/e-tree-selection-model.c index e359b9aa07..70ae105a77 100644 --- a/widgets/table/e-tree-selection-model.c +++ b/widgets/table/e-tree-selection-model.c @@ -837,7 +837,7 @@ etsm_selected_count_recurse (ETreeSelectionModel *etsm, if (selection_node->children) { ETreePath child = e_tree_model_node_get_first_child(E_TREE_MODEL(etsm->priv->model), path); int i; - for (i = 0; i < selection_node->num_children; i++, child = e_tree_model_node_get_next(E_TREE_MODEL(etsm->priv->model), child)) + for (i = 0; child && i < selection_node->num_children; i++, child = e_tree_model_node_get_next(E_TREE_MODEL(etsm->priv->model), child)) if (selection_node->children[i]) etsm_selected_count_recurse (etsm, selection_node->children[i], child, count); } -- cgit v1.2.3