From ad293ab856e842cbb8cc4f184716eafc767953af Mon Sep 17 00:00:00 2001 From: Carlos Garcia Campos Date: Sun, 07 Sep 2008 10:37:26 +0000 Subject: Do not append the file extension twice when saving an image. 2008-09-07 Carlos Garcia Campos * shell/ev-window.c: (image_save_dialog_response_cb): Do not append the file extension twice when saving an image. svn path=/trunk/; revision=3159 --- (limited to 'shell') diff --git a/shell/ev-window.c b/shell/ev-window.c index ed64145..df3c17c 100644 --- a/shell/ev-window.c +++ b/shell/ev-window.c @@ -5063,7 +5063,7 @@ image_save_dialog_response_cb (GtkWidget *fc, } extensions = gdk_pixbuf_format_get_extensions (format); - if (g_str_has_suffix(uri, extensions[0])) { + if (!g_str_has_suffix (uri, extensions[0])) { gchar *uri_extension; uri_extension = g_strconcat (uri, ".", extensions[0], NULL); @@ -5072,7 +5072,7 @@ image_save_dialog_response_cb (GtkWidget *fc, } else { target_file = g_file_new_for_uri (uri); } - g_strfreev(extensions); + g_strfreev (extensions); g_free (uri); is_native = g_file_is_native (target_file); -- cgit v0.9.1