diff options
author | Carlos Garcia Campos <carlosgc@gnome.org> | 2009-06-12 13:05:55 (GMT) |
---|---|---|
committer | Carlos Garcia Campos <carlosgc@gnome.org> | 2009-06-12 13:05:55 (GMT) |
commit | 787ccfc8ac336388db6ff40c32e1741695935c49 (patch) | |
tree | 4de5b1a70a59a864c1bc3a4e2c7c52489d5ecb85 | |
parent | 3ad36435efda31a399db7df2082c3e3439622397 (diff) |
[shell] Add default case to switch, warning about unsupported print pages setting
It falls back to GTK_PRINT_PAGES_ALL. Fixes bug #585497.
-rw-r--r-- | shell/ev-print-operation.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/shell/ev-print-operation.c b/shell/ev-print-operation.c index 9c21a1d..1821d4f 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; |