From: Carlos Garcia Campos Date: Mon, 29 Dec 2008 10:00:21 +0000 (+0000) Subject: Fallback to EV_FILE_FORMAT_PS when file_format is not defined. X-Git-Tag: EVINCE_2_25_4~17 X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=commitdiff_plain;h=15343165c8199172e620ad3addf7b2a5b7dfa942;hp=755ab0a93d5c83499d2c08124872283e6abd2263;p=evince.git Fallback to EV_FILE_FORMAT_PS when file_format is not defined. 2008-12-29 Carlos Garcia Campos * shell/ev-print-operation.c: (ev_print_operation_export_print_dialog_response_cb): Fallback to EV_FILE_FORMAT_PS when file_format is not defined. svn path=/trunk/; revision=3312 --- diff --git a/ChangeLog b/ChangeLog index 89248180..cfa001e9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2008-12-29 Carlos Garcia Campos + + * shell/ev-print-operation.c: + (ev_print_operation_export_print_dialog_response_cb): + + Fallback to EV_FILE_FORMAT_PS when file_format is not defined. + 2008-12-28 Carlos Garcia Campos * shell/ev-print-operation.c: (export_cancel), 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);