]> www.fi.muni.cz Git - evince.git/blobdiff - libdocument/ev-image.c
Add .png extension when saving images using DnD
[evince.git] / libdocument / ev-image.c
index e02831e3ea6498837f553e20080ac1b51c5aa25e..fcbbd7d00e7ee85d0abf8a4d13c623a023b06fc0 100644 (file)
@@ -144,8 +144,8 @@ ev_image_save_tmp (EvImage   *image,
        if (image->priv->tmp_uri)
                return image->priv->tmp_uri;
 
-        if ((fd = ev_mkstemp ("image.XXXXXX", &filename, &error)) == -1)
-                goto had_error;
+       if ((fd = ev_mkstemp ("image.XXXXXX.png", &filename, &error)) == -1)
+               goto had_error;
 
        gdk_pixbuf_save (pixbuf, filename,
                         "png", &error,