From f9b57c7be5c8caaec5256804ad47d1dad069a993 Mon Sep 17 00:00:00 2001 From: "Nickolay V. Shmyrev" Date: Tue, 19 May 2009 02:34:54 +0400 Subject: [PATCH] [printing] Fixes crash found by tests Check that page range specified is empty --- shell/ev-print-operation.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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), -- 2.43.0