diff options
author | Peter Williams <peterw@ximian.com> | 2001-08-14 22:33:02 +0800 |
---|---|---|
committer | Peter Williams <peterw@src.gnome.org> | 2001-08-14 22:33:02 +0800 |
commit | c4d909a3661d41ecaf7cd1fb9ad0a98f70808296 (patch) | |
tree | 05e7e8c2d5655a3621413a7aafc05df08195b22a /widgets/table | |
parent | d8a0beac1bc3318fe5d82592832843c215ed7ae7 (diff) | |
download | gsoc2013-evolution-c4d909a3661d41ecaf7cd1fb9ad0a98f70808296.tar.gz gsoc2013-evolution-c4d909a3661d41ecaf7cd1fb9ad0a98f70808296.tar.zst gsoc2013-evolution-c4d909a3661d41ecaf7cd1fb9ad0a98f70808296.zip |
Workaround for Ximian bug #6795. Will prevent a crash and doesn't seem to
2001-08-14 Peter Williams <peterw@ximian.com>
* 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
Diffstat (limited to 'widgets/table')
-rw-r--r-- | widgets/table/e-tree-selection-model.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); } |