]> www.fi.muni.cz Git - evince.git/commitdiff
Fallback to EV_FILE_FORMAT_PS when file_format is not defined.
authorCarlos Garcia Campos <carlosgc@gnome.org>
Mon, 29 Dec 2008 10:00:21 +0000 (10:00 +0000)
committerCarlos Garcia Campos <carlosgc@src.gnome.org>
Mon, 29 Dec 2008 10:00:21 +0000 (10:00 +0000)
2008-12-29  Carlos Garcia Campos  <carlosgc@gnome.org>

* 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

ChangeLog
shell/ev-print-operation.c

index 89248180b48b41916222726670ef04a7f3138457..cfa001e9bd885a080f66732fc69ddd833fc6442e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2008-12-29  Carlos Garcia Campos  <carlosgc@gnome.org>
+
+       * 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  <carlosgc@gnome.org>
 
        * shell/ev-print-operation.c: (export_cancel),
index 48d69a145e4eb52f7f561cfbc57ece35e755745f..17b7913b94cb6b285ee27ac998ba56addff70bb1 100644 (file)
@@ -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);