diff options
author | Li Yuan <li.yuan@sun.com> | 2004-11-24 18:34:55 +0800 |
---|---|---|
committer | Harry Lu <haip@src.gnome.org> | 2004-11-24 18:34:55 +0800 |
commit | ca14465d46693e9f0b77051d7f57f7e88950a4c3 (patch) | |
tree | b5c476fc6604a6d17e1d3abfbd7b7e7f16511c51 /widgets/table | |
parent | 56946fcdb4feb37696c0962ef9e498fb145cb1b0 (diff) | |
download | gsoc2013-evolution-ca14465d46693e9f0b77051d7f57f7e88950a4c3.tar.gz gsoc2013-evolution-ca14465d46693e9f0b77051d7f57f7e88950a4c3.tar.zst gsoc2013-evolution-ca14465d46693e9f0b77051d7f57f7e88950a4c3.zip |
check whether header_canvas and table_canvas is NULL.
2004-11-24 Li Yuan <li.yuan@sun.com>
* e-table.c: (e_table_get_cell_geometry):
check whether header_canvas and table_canvas is NULL.
svn path=/trunk/; revision=27980
Diffstat (limited to 'widgets/table')
-rw-r--r-- | widgets/table/e-table.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/widgets/table/e-table.c b/widgets/table/e-table.c index ab836fb372..00aa37e88b 100644 --- a/widgets/table/e-table.c +++ b/widgets/table/e-table.c @@ -2392,11 +2392,13 @@ e_table_get_cell_geometry (ETable *table, e_table_group_get_cell_geometry(table->group, &row, &col, x_return, y_return, width_return, height_return); - if (x_return) + if (x_return && table->table_canvas) (*x_return) -= GTK_LAYOUT(table->table_canvas)->hadjustment->value; if (y_return) { - (*y_return) -= GTK_LAYOUT(table->table_canvas)->vadjustment->value; - (*y_return) += GTK_WIDGET(table->header_canvas)->allocation.height; + if (table->table_canvas) + (*y_return) -= GTK_LAYOUT(table->table_canvas)->vadjustment->value; + if (table->header_canvas) + (*y_return) += GTK_WIDGET(table->header_canvas)->allocation.height; } } |