summaryrefslogtreecommitdiff
blob: 80cad2b98c26ad5f2a2bb81906b4fcdb53b00c0e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
diff -uNr eog-2.8.0/libeog/eog-image.c eog-2.8.0.patched/libeog/eog-image.c
--- eog-2.8.0/libeog/eog-image.c	2004-09-12 19:42:51.000000000 +0200
+++ eog-2.8.0.patched/libeog/eog-image.c	2004-11-12 17:50:10.316509248 +0100
@@ -1409,13 +1409,15 @@
 			     _("Temporary file creation failed."));
 		return FALSE;
 	}
-	
+
+#if HAVE_JPEG
 	/* determine kind of saving */
 	if ((g_ascii_strcasecmp (source->format, EOG_FILE_FORMAT_JPEG) == 0) && 
 	    source->exists && source->modified) 
 	{
 		success = eog_image_jpeg_save_file (img, tmpfile, source, NULL, error);
 	}
+#endif
 
 	if (!success && (*error == NULL)) {
 		success = gdk_pixbuf_save (priv->image, tmpfile, source->format, error, NULL);
@@ -1541,11 +1543,14 @@
 		success = eog_image_copy_file (source, target, error);
 		direct_copy = success;
 	}
+
+#if HAVE_JPEG
 	else if ((g_ascii_strcasecmp (source->format, EOG_FILE_FORMAT_JPEG) == 0 && source->exists) ||
 		 (g_ascii_strcasecmp (target->format, EOG_FILE_FORMAT_JPEG) == 0))
 	{
 		success = eog_image_jpeg_save_file (img, tmpfile, source, target, error);
 	}
+#endif
 
 	if (!success && (*error == NULL)) {
 		success = gdk_pixbuf_save (priv->image, tmpfile, target->format, error, NULL);