diff options
author | Christopher James Lahey <clahey@ximian.com> | 2001-02-21 08:23:42 +0800 |
---|---|---|
committer | Chris Lahey <clahey@src.gnome.org> | 2001-02-21 08:23:42 +0800 |
commit | f0e49c7c18dff132093b74ae794f53675ac2d3d0 (patch) | |
tree | 2fe128b45b29b0bc43fc3834d56f95517cd974b9 | |
parent | a056c8466d7bb0dfaef2170a983b7d43398b086f (diff) | |
download | gsoc2013-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
-rw-r--r-- | widgets/table/e-cell.c | 4 |
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); } |