From 09ab532c3911637053adea51e3d19f04e63493cc Mon Sep 17 00:00:00 2001 From: Damon Chaplin Date: Mon, 4 Mar 2002 19:30:31 +0000 Subject: only call the cell's print method if it has one. Avoids crashing for 2002-03-04 Damon Chaplin * e-cell.c (e_cell_print): only call the cell's print method if it has one. Avoids crashing for unimplemented print methods. svn path=/trunk/; revision=15903 --- widgets/table/e-cell.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'widgets') diff --git a/widgets/table/e-cell.c b/widgets/table/e-cell.c index beb86489f0..729207b32f 100644 --- a/widgets/table/e-cell.c +++ b/widgets/table/e-cell.c @@ -292,7 +292,8 @@ e_cell_print (ECellView *ecell_view, GnomePrintContext *context, int model_col, int view_col, int row, double width, double height) { - ECVIEW_EC_CLASS(ecell_view)->print (ecell_view, context, model_col, view_col, row, width, height); + if (ECVIEW_EC_CLASS(ecell_view)->print) + ECVIEW_EC_CLASS(ecell_view)->print (ecell_view, context, model_col, view_col, row, width, height); } /** -- cgit v1.2.3