diff options
Diffstat (limited to 'widgets/table/e-table-config.c')
-rw-r--r-- | widgets/table/e-table-config.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/widgets/table/e-table-config.c b/widgets/table/e-table-config.c index 2ad23b7120..4e40c150fd 100644 --- a/widgets/table/e-table-config.c +++ b/widgets/table/e-table-config.c @@ -947,6 +947,11 @@ config_button_up (GtkWidget *widget, ETableConfig *config) int i; e_table_selected_row_foreach (config->shown, add_column, &columns); + + /* if no columns left, just return */ + if (columns == NULL) + return; + columns = g_list_reverse (columns); new_shown = g_new (int, config->temp_state->col_count); @@ -998,6 +1003,11 @@ config_button_down (GtkWidget *widget, ETableConfig *config) e_table_selected_row_foreach (config->shown, add_column, &columns); + /* if no columns left, just return */ + if (columns == NULL) + return; + + new_shown = g_new (int, config->temp_state->col_count); new_expansions = g_new (double, config->temp_state->col_count); |