From: Nickolay V. Shmyrev Date: Mon, 18 May 2009 22:34:54 +0000 (+0400) Subject: [printing] Fixes crash found by tests X-Git-Tag: EVINCE_2_27_1 X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=commitdiff_plain;h=refs%2Ftags%2FEVINCE_2_27_1;p=evince.git [printing] Fixes crash found by tests Check that page range specified is empty --- diff --git a/shell/ev-print-operation.c b/shell/ev-print-operation.c index b495de13..fb3259b4 100644 --- a/shell/ev-print-operation.c +++ b/shell/ev-print-operation.c @@ -1110,7 +1110,7 @@ ev_print_operation_export_print_dialog_response_cb (GtkDialog *dial break; } - if (!clamp_ranges (export)) { + if (export->n_ranges < 1 || !clamp_ranges (export)) { GtkWidget *message_dialog; message_dialog = gtk_message_dialog_new (GTK_WINDOW (dialog),