aboutsummaryrefslogtreecommitdiffstats
path: root/widgets
diff options
context:
space:
mode:
authorDamon Chaplin <damon@ximian.com>2002-03-05 03:30:31 +0800
committerDamon Chaplin <damon@src.gnome.org>2002-03-05 03:30:31 +0800
commit09ab532c3911637053adea51e3d19f04e63493cc (patch)
tree6e76fde2a1fa421fa9e2a8bfb99c40e59569ca80 /widgets
parentdc0b9c9b6c3a6d0e6130f06b818500c034bf9134 (diff)
downloadgsoc2013-evolution-09ab532c3911637053adea51e3d19f04e63493cc.tar
gsoc2013-evolution-09ab532c3911637053adea51e3d19f04e63493cc.tar.gz
gsoc2013-evolution-09ab532c3911637053adea51e3d19f04e63493cc.tar.bz2
gsoc2013-evolution-09ab532c3911637053adea51e3d19f04e63493cc.tar.lz
gsoc2013-evolution-09ab532c3911637053adea51e3d19f04e63493cc.tar.xz
gsoc2013-evolution-09ab532c3911637053adea51e3d19f04e63493cc.tar.zst
gsoc2013-evolution-09ab532c3911637053adea51e3d19f04e63493cc.zip
only call the cell's print method if it has one. Avoids crashing for
2002-03-04 Damon Chaplin <damon@ximian.com> * 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
Diffstat (limited to 'widgets')
-rw-r--r--widgets/table/e-cell.c3
1 files changed, 2 insertions, 1 deletions
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);
}
/**