--- plug-ins/common/jpeg.c~	Mon Feb 11 18:27:24 2002
+++ plug-ins/common/jpeg.c	Tue Dec 17 16:49:17 2002
@@ -719,9 +719,7 @@
   gint     i, start, end;
 
 #ifdef GIMP_HAVE_PARASITES
-  JpegSaveVals local_save_vals;
   GimpParasite * volatile comment_parasite = NULL;
-  GimpParasite * volatile vals_parasite    = NULL;
 #endif /* GIMP_HAVE_PARASITES */
 
   /* We set up the normal JPEG error routines. */
@@ -795,29 +793,9 @@
 	  comment_parasite = NULL;
 	}
       
-      /* pw - figuring out what the saved values were is non-trivial.
-       * They don't seem to be in the cinfo structure. For now, I will
-       * just use the defaults, but if someone figures out how to derive
-       * them this is the place to store them. */
-      
-      local_save_vals.quality     = DEFAULT_QUALITY;
-      local_save_vals.smoothing   = DEFAULT_SMOOTHING;
-      local_save_vals.optimize    = DEFAULT_OPTIMIZE;
-      
-#ifdef HAVE_PROGRESSIVE_JPEG 
-      local_save_vals.progressive = cinfo.progressive_mode;
-#else
-      local_save_vals.progressive = 0;
-#endif /* HAVE_PROGRESSIVE_JPEG */
-      local_save_vals.baseline    = DEFAULT_BASELINE;
-      local_save_vals.subsmp      = DEFAULT_SUBSMP;   /* sg - this _is_ there, but I'm too lazy */ 
-      local_save_vals.restart     = DEFAULT_RESTART;
-      local_save_vals.dct         = DEFAULT_DCT;
-      local_save_vals.preview     = DEFAULT_PREVIEW;
-      
-      vals_parasite = gimp_parasite_new ("jpeg-save-options", 0,
-					 sizeof (local_save_vals),
-					 &local_save_vals);
+      /* Do not attach the "jpeg-save-options" parasite to the image
+       * because this conflics with the global defaults.  See bug #75398:
+       * http://bugzilla.gnome.org/show_bug.cgi?id=75398 */
     } 
 #endif /* GIMP_HAVE_PARASITES */
   
@@ -1075,19 +1053,13 @@
      there was no image. */
 
 #ifdef GIMP_HAVE_PARASITES
-  if (!preview) 
+  if (!preview)
     {
       if (comment_parasite)
 	{
 	  gimp_image_parasite_attach (image_ID, comment_parasite);
 	  gimp_parasite_free (comment_parasite);
 	}
-
-      if (vals_parasite)
-	{
-	  gimp_image_parasite_attach (image_ID, vals_parasite);
-	  gimp_parasite_free (vals_parasite);
-	}   
     }
 #endif /* GIMP_HAVE_PARASITES */
 
