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
+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):
}
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);
} 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);