[evince] [printing] Fixes crash found by tests



commit f9b57c7be5c8caaec5256804ad47d1dad069a993
Author: Nickolay V. Shmyrev <nshmyrev yandex ru>
Date:   Tue May 19 02:34:54 2009 +0400

    [printing] Fixes crash found by tests
    
    Check that page range specified is empty
---
 shell/ev-print-operation.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/shell/ev-print-operation.c b/shell/ev-print-operation.c
index b495de1..fb3259b 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),



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]