]> www.fi.muni.cz Git - evince.git/blobdiff - libdocument/ev-image.c
[dualscreen] fix crash on ctrl+w and fix control window closing
[evince.git] / libdocument / ev-image.c
index 572b1195263fa1b014b4f32d1696e2818621a3ec..fcbbd7d00e7ee85d0abf8a4d13c623a023b06fc0 100644 (file)
@@ -14,7 +14,7 @@
  *
  * You should have received a copy of the GNU General Public License
  * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  */
 
 #include <config.h>
@@ -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,