X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=blobdiff_plain;ds=sidebyside;f=shell%2Fev-print-operation.c;h=17b7913b94cb6b285ee27ac998ba56addff70bb1;hb=b2ad055bb54dd89f3e8748302cfbd5c6f746d6a4;hp=48d69a145e4eb52f7f561cfbc57ece35e755745f;hpb=755ab0a93d5c83499d2c08124872283e6abd2263;p=evince.git diff --git a/shell/ev-print-operation.c b/shell/ev-print-operation.c index 48d69a14..17b7913b 100644 --- a/shell/ev-print-operation.c +++ b/shell/ev-print-operation.c @@ -1100,7 +1100,7 @@ ev_print_operation_export_print_dialog_response_cb (GtkDialog *dial get_first_and_last_page (export, &first_page, &last_page); - export->fc.format = g_ascii_strcasecmp (file_format, "pdf") == 0 ? + export->fc.format = file_format && g_ascii_strcasecmp (file_format, "pdf") == 0 ? EV_FILE_FORMAT_PDF : EV_FILE_FORMAT_PS; export->fc.filename = export->temp_file; export->fc.first_page = MIN (first_page, last_page);