From: Carlos Garcia Campos Date: Fri, 12 Jun 2009 13:05:55 +0000 (+0200) Subject: [shell] Add default case to switch, warning about unsupported print pages setting X-Git-Tag: EVINCE_2_27_3~17 X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=commitdiff_plain;h=787ccfc8ac336388db6ff40c32e1741695935c49;p=evince.git [shell] Add default case to switch, warning about unsupported print pages setting It falls back to GTK_PRINT_PAGES_ALL. Fixes bug #585497. --- diff --git a/shell/ev-print-operation.c b/shell/ev-print-operation.c index 9c21a1d9..1821d4f9 100644 --- a/shell/ev-print-operation.c +++ b/shell/ev-print-operation.c @@ -1120,6 +1120,8 @@ ev_print_operation_export_print_dialog_response_cb (GtkDialog *dial export->ranges[i].end = export->n_pages - 1; } break; + default: + g_warning ("Unsupported print pages setting\n"); case GTK_PRINT_PAGES_ALL: export->ranges = &export->one_range; @@ -1129,6 +1131,7 @@ ev_print_operation_export_print_dialog_response_cb (GtkDialog *dial break; } + if (export->n_ranges < 1 || !clamp_ranges (export)) { GtkWidget *message_dialog;