From 876558f75fd7342eb4cb95a45c6173d4a876bbc1 Mon Sep 17 00:00:00 2001 From: Ettore Perazzoli Date: Mon, 28 Aug 2000 15:27:38 +0000 Subject: Remove a ton of (hopefully harmless) warnings from the ETable code. svn path=/trunk/; revision=5081 --- widgets/table/e-tree-model.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'widgets/table/e-tree-model.c') diff --git a/widgets/table/e-tree-model.c b/widgets/table/e-tree-model.c index c57bf2d683..f6d8ddddd5 100644 --- a/widgets/table/e-tree-model.c +++ b/widgets/table/e-tree-model.c @@ -446,6 +446,9 @@ e_tree_model_row_of_node (ETreeModel *etree, ETreePath *node) { int i; + if (etree->root == node) + return -1; + for (i = 0; i < etree->row_array->len; i ++) if (g_array_index (etree->row_array, GNode*, i) == node) return i; -- cgit