From b0be7c3db2510c0d836c5cf1138588cb9810b974 Mon Sep 17 00:00:00 2001 From: Christopher James Lahey Date: Thu, 5 Jul 2001 16:38:59 +0000 Subject: Added checks that row and col are >= 0. 2001-07-05 Christopher James Lahey * e-tree.c (e_tree_get_cell_geometry): Added checks that row and col are >= 0. svn path=/trunk/; revision=10809 --- widgets/table/e-tree.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'widgets') diff --git a/widgets/table/e-tree.c b/widgets/table/e-tree.c index e5b83b92e1..7823c055f9 100644 --- a/widgets/table/e-tree.c +++ b/widgets/table/e-tree.c @@ -1822,6 +1822,8 @@ e_tree_get_cell_geometry (ETree *tree, { g_return_if_fail (tree != NULL); g_return_if_fail (E_IS_TREE (tree)); + g_return_if_fail (row >= 0); + g_return_if_fail (col >= 0); /* FIXME it would be nice if it could handle a NULL row_return or * col_return gracefully. */ -- cgit