]> www.fi.muni.cz Git - evince.git/commitdiff
[shell] Add default case to switch, warning about unsupported print pages setting
authorCarlos Garcia Campos <carlosgc@gnome.org>
Fri, 12 Jun 2009 13:05:55 +0000 (15:05 +0200)
committerCarlos Garcia Campos <carlosgc@gnome.org>
Fri, 12 Jun 2009 13:05:55 +0000 (15:05 +0200)
It falls back to GTK_PRINT_PAGES_ALL. Fixes bug #585497.

shell/ev-print-operation.c

index 9c21a1d93c5dfbed0e8b0f664891eef13831b4fd..1821d4f96a94a2343a363ceb6b441748ce9c1e8e 100644 (file)
@@ -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;