X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=blobdiff_plain;f=shell%2Fev-print-operation.c;h=08c655d4bce6f1100fa9223154c7615723bcc475;hb=00632264c5cb956ee6d66b00d14bbd4ad9f96efd;hp=9ea42c1b99c0d92e3aab6f9d53b57de5c0dbe6ef;hpb=81a61466af2516daf6ba4b716234c0bcbeee959c;p=evince.git diff --git a/shell/ev-print-operation.c b/shell/ev-print-operation.c index 9ea42c1b..08c655d4 100644 --- a/shell/ev-print-operation.c +++ b/shell/ev-print-operation.c @@ -1252,13 +1252,8 @@ ev_print_operation_export_print_dialog_response_cb (GtkDialog *dial get_first_and_last_page (export, &first_page, &last_page); - if (file_format) { - export->fc.format = g_ascii_strcasecmp (file_format, "pdf") == 0 ? - EV_FILE_FORMAT_PDF : EV_FILE_FORMAT_PS; - } else { - export->fc.format = gtk_printer_accepts_pdf (printer) ? - EV_FILE_FORMAT_PDF : EV_FILE_FORMAT_PS; - } + 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); export->fc.last_page = MAX (first_page, last_page);