aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/table/e-tree-model.c
diff options
context:
space:
mode:
authorEttore Perazzoli <ettore@src.gnome.org>2000-08-28 23:27:38 +0800
committerEttore Perazzoli <ettore@src.gnome.org>2000-08-28 23:27:38 +0800
commit876558f75fd7342eb4cb95a45c6173d4a876bbc1 (patch)
treec96a7bf68309db331b3c3b7d38b0e592b0f880f3 /widgets/table/e-tree-model.c
parente3913975e84bff02feedb4252d4ecb2cddce211f (diff)
downloadgsoc2013-evolution-876558f75fd7342eb4cb95a45c6173d4a876bbc1.tar.gz
gsoc2013-evolution-876558f75fd7342eb4cb95a45c6173d4a876bbc1.tar.zst
gsoc2013-evolution-876558f75fd7342eb4cb95a45c6173d4a876bbc1.zip
Remove a ton of (hopefully harmless) warnings from the ETable code.
svn path=/trunk/; revision=5081
Diffstat (limited to 'widgets/table/e-tree-model.c')
-rw-r--r--widgets/table/e-tree-model.c3
1 files changed, 3 insertions, 0 deletions
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;