From f0e49c7c18dff132093b74ae794f53675ac2d3d0 Mon Sep 17 00:00:00 2001 From: Christopher James Lahey Date: Wed, 21 Feb 2001 00:23:42 +0000 Subject: Added some g_return_if_fails here. 2001-02-20 Christopher James Lahey * e-cell.c (e_cell_draw): Added some g_return_if_fails here. svn path=/trunk/; revision=8310 --- widgets/table/e-cell.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'widgets/table') 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); } -- cgit v1.2.3