]> www.fi.muni.cz Git - evince.git/commitdiff
Do not append the file extension twice when saving an image.
authorCarlos Garcia Campos <carlosgc@gnome.org>
Sun, 7 Sep 2008 10:37:26 +0000 (10:37 +0000)
committerCarlos Garcia Campos <carlosgc@src.gnome.org>
Sun, 7 Sep 2008 10:37:26 +0000 (10:37 +0000)
2008-09-07  Carlos Garcia Campos  <carlosgc@gnome.org>

* 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

ChangeLog
shell/ev-window.c

index 10da701ce4a0d81c6d09745e24b03148191ec35f..15b6eead540be399432e8c23653f01a16c8db01b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2008-09-07  Carlos Garcia Campos  <carlosgc@gnome.org>
+
+       * 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  <carlosgc@gnome.org>
 
        * backend/pdf/ev-poppler.cc: (pdf_document_images_get_image):
index ed64145dcb807af3087e63028d9236390aeb196f..df3c17cefd54c002a8ddba6756769bcb87668c71 100644 (file)
@@ -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);