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
This commit is contained in:

committed by
Damon Chaplin

parent
dc0b9c9b6c
commit
09ab532c39
@ -292,7 +292,8 @@ e_cell_print (ECellView *ecell_view, GnomePrintContext *context,
|
|||||||
int model_col, int view_col, int row,
|
int model_col, int view_col, int row,
|
||||||
double width, double height)
|
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);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user