diff options
Diffstat (limited to 'widgets/e-table/e-table.c')
-rw-r--r-- | widgets/e-table/e-table.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/widgets/e-table/e-table.c b/widgets/e-table/e-table.c index db7ca11b3f..8a93577dbf 100644 --- a/widgets/e-table/e-table.c +++ b/widgets/e-table/e-table.c @@ -823,8 +823,11 @@ set_scroll_adjustments (ETable *table, GtkAdjustment *hadjustment, GtkAdjustment *vadjustment) { - vadjustment->step_increment = 20; - gtk_adjustment_changed(vadjustment); + if (vadjustment != NULL) { + vadjustment->step_increment = 20; + gtk_adjustment_changed(vadjustment); + } + gtk_layout_set_hadjustment (GTK_LAYOUT(table->table_canvas), hadjustment); gtk_layout_set_vadjustment (GTK_LAYOUT(table->table_canvas), |