Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/shell/ev-print-operation.c
diff options
context:
space:
mode:
authorNickolay V. Shmyrev <nshmyrev@yandex.ru>2009-05-18 22:34:54 (GMT)
committer Nickolay V. Shmyrev <nshmyrev@yandex.ru>2009-05-18 22:34:54 (GMT)
commitf9b57c7be5c8caaec5256804ad47d1dad069a993 (patch)
tree79ca1263c574e7cc6318d3acb77aa2ee6c95090e /shell/ev-print-operation.c
parent18aa2a80c1c29ae08e2c99d9e2456f74c0d3354f (diff)
[printing] Fixes crash found by tests
Check that page range specified is empty
Diffstat (limited to 'shell/ev-print-operation.c')
-rw-r--r--shell/ev-print-operation.c2
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),