From: Carlos Garcia Campos Date: Sun, 7 Sep 2008 10:37:26 +0000 (+0000) Subject: Do not append the file extension twice when saving an image. X-Git-Tag: EVINCE_2_23_92~10 X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=commitdiff_plain;h=ad293ab856e842cbb8cc4f184716eafc767953af;p=evince.git 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 --- diff --git a/ChangeLog b/ChangeLog index 10da701c..15b6eead 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +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. + 2008-09-07 Carlos Garcia Campos * backend/pdf/ev-poppler.cc: (pdf_document_images_get_image): diff --git a/shell/ev-window.c b/shell/ev-window.c index ed64145d..df3c17ce 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);