summaryrefslogtreecommitdiff
path: root/src/xsane-viewer.c
diff options
context:
space:
mode:
authorJulien BLACHE <jblache@debian.org>2005-11-21 21:49:19 +0100
committerMattia Rizzolo <mattia@mapreri.org>2014-10-03 14:05:12 +0000
commit91e0f8f4872781ae41c44747330935d6420534e6 (patch)
tree39db641abe297fb735853015b906d7763651941e /src/xsane-viewer.c
parent13a92fd57322d6de4548e7dc992db591a0a54ee3 (diff)
parent6fceea28608be0fda32d94f59e1b1550774318a0 (diff)
Imported Debian patch 0.98-1debian/0.98-1
Diffstat (limited to 'src/xsane-viewer.c')
-rw-r--r--src/xsane-viewer.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/xsane-viewer.c b/src/xsane-viewer.c
index 9fcae69..6a58f8b 100644
--- a/src/xsane-viewer.c
+++ b/src/xsane-viewer.c
@@ -253,7 +253,6 @@ static void xsane_viewer_save_callback(GtkWidget *window, gpointer data)
char *inputfilename;
char windowname[256];
int output_format;
- char *filetype = NULL;
int abort = 0;
char buf[256];
@@ -282,7 +281,7 @@ static void xsane_viewer_save_callback(GtkWidget *window, gpointer data)
snprintf(windowname, sizeof(windowname), "%s %s %s", xsane.prog_name, WINDOW_VIEWER_OUTPUT_FILENAME, xsane.device_text);
umask((mode_t) preferences.directory_umask); /* define new file permissions */
- abort = xsane_back_gtk_get_filename(windowname, outputfilename, sizeof(outputfilename), outputfilename, &filetype, TRUE, TRUE, FALSE, TRUE);
+ abort = xsane_back_gtk_get_filename(windowname, outputfilename, sizeof(outputfilename), outputfilename, &preferences.filetype, TRUE, TRUE, FALSE, TRUE);
umask(XSANE_DEFAULT_UMASK); /* define new file permissions */
if (abort)
@@ -321,7 +320,7 @@ static void xsane_viewer_save_callback(GtkWidget *window, gpointer data)
inputfilename = strdup(v->filename);
- output_format = xsane_identify_output_format(v->output_filename, filetype, 0);
+ output_format = xsane_identify_output_format(v->output_filename, preferences.filetype, 0);
if ((!v->allow_reduction_to_lineart) && (output_format == XSANE_PNM)) /* save PNM but do not reduce to lineart (if lineart) */
{