aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristopher James Lahey <clahey@ximian.com>2001-07-07 11:26:39 +0800
committerChris Lahey <clahey@src.gnome.org>2001-07-07 11:26:39 +0800
commit200f21429939f2b27591bb0c5264c9d6e9ca8e0a (patch)
tree2387e07f4ff008172e8085232429abffbd727393
parentc9da559b50b1d0402a8acdf621ac08fb7d67dd7f (diff)
downloadgsoc2013-evolution-200f21429939f2b27591bb0c5264c9d6e9ca8e0a.tar.gz
gsoc2013-evolution-200f21429939f2b27591bb0c5264c9d6e9ca8e0a.tar.zst
gsoc2013-evolution-200f21429939f2b27591bb0c5264c9d6e9ca8e0a.zip
Added checks for if row is outside of the appropriate range.
2001-07-06 Christopher James Lahey <clahey@ximian.com> * e-tree-table-adapter.c (e_tree_table_adapter_node_at_row): Added checks for if row is outside of the appropriate range. svn path=/trunk/; revision=10878
-rw-r--r--widgets/table/e-tree-table-adapter.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/widgets/table/e-tree-table-adapter.c b/widgets/table/e-tree-table-adapter.c
index bf15d1659b..f02494c4e1 100644
--- a/widgets/table/e-tree-table-adapter.c
+++ b/widgets/table/e-tree-table-adapter.c
@@ -989,6 +989,10 @@ void e_tree_table_adapter_node_set_expanded_recurse (ETreeTableAdapter *
ETreePath e_tree_table_adapter_node_at_row (ETreeTableAdapter *etta, int row)
{
+ if (row < 0)
+ return NULL;
+ if (row >= etta->priv->n_map)
+ return NULL;
if (etta->priv->root_visible)
return etta->priv->map_table[row];
else