aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/table
diff options
context:
space:
mode:
authorChristopher James Lahey <clahey@ximian.com>2001-02-21 08:23:42 +0800
committerChris Lahey <clahey@src.gnome.org>2001-02-21 08:23:42 +0800
commitf0e49c7c18dff132093b74ae794f53675ac2d3d0 (patch)
tree2fe128b45b29b0bc43fc3834d56f95517cd974b9 /widgets/table
parenta056c8466d7bb0dfaef2170a983b7d43398b086f (diff)
downloadgsoc2013-evolution-f0e49c7c18dff132093b74ae794f53675ac2d3d0.tar.gz
gsoc2013-evolution-f0e49c7c18dff132093b74ae794f53675ac2d3d0.tar.zst
gsoc2013-evolution-f0e49c7c18dff132093b74ae794f53675ac2d3d0.zip
Added some g_return_if_fails here.
2001-02-20 Christopher James Lahey <clahey@ximian.com> * e-cell.c (e_cell_draw): Added some g_return_if_fails here. svn path=/trunk/; revision=8310
Diffstat (limited to 'widgets/table')
-rw-r--r--widgets/table/e-cell.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/widgets/table/e-cell.c b/widgets/table/e-cell.c
index d0ef7dc44b..2d59df19da 100644
--- a/widgets/table/e-cell.c
+++ b/widgets/table/e-cell.c
@@ -231,6 +231,10 @@ e_cell_draw (ECellView *ecell_view, GdkDrawable *drawable,
int model_col, int view_col, int row, ECellFlags flags,
int x1, int y1, int x2, int y2)
{
+ g_return_if_fail (ecell_view != NULL);
+ g_return_if_fail (row >= 0);
+ g_return_if_fail (row < e_table_model_row_count(ecell_view->e_table_model));
+
E_CELL_CLASS (GTK_OBJECT (ecell_view->ecell)->klass)->draw (
ecell_view, drawable, model_col, view_col, row, flags, x1, y1, x2, y2);
}