Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorcarlosgc <carlosgc@e12069bd-dc25-0410-a696-d39a8afcd844>2008-12-29 10:00:21 (GMT)
committer carlosgc <carlosgc@e12069bd-dc25-0410-a696-d39a8afcd844>2008-12-29 10:00:21 (GMT)
commit6b047dcbf52befa593cb63fffc27b78a98272f2a (patch)
tree378ba06dfa278cd656f3577eed9a27be11494988
parent3ca4211ab829cfefb62e9e37ea5931399e97009d (diff)
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. git-svn-id: svn+ssh://svn.gnome.org/svn/evince/trunk@3312 e12069bd-dc25-0410-a696-d39a8afcd844
-rw-r--r--ChangeLog7
-rw-r--r--shell/ev-print-operation.c2
2 files changed, 8 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 8924818..cfa001e 100644
--- 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),
diff --git a/shell/ev-print-operation.c b/shell/ev-print-operation.c
index 48d69a1..17b7913 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);