Bill Skaggs <weskaggs@primate.ucdavis.edu>

* plug-ins/jpeg/jpeg-load.c: Don't detach from drawable if
	it belongs to a preview layer.  Fixes bug #304352.
This commit is contained in:
William Skaggs 2005-05-16 20:23:28 +00:00
parent 01e18712a4
commit ca98388de6
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2005-05-16 Bill Skaggs <weskaggs@primate.ucdavis.edu>
* plug-ins/jpeg/jpeg-load.c: Don't detach from drawable if
it belongs to a preview layer. Fixes bug #304352.
2005-05-16 Michael Natterer <mitch@gimp.org>
* tools/pdbgen/pdb/procedural_db.pdb: fixed typo in API docs.

View File

@ -457,7 +457,8 @@ load_image (const gchar *filename,
/* Detach from the drawable and add it to the image.
*/
gimp_drawable_detach (drawable);
if (!preview)
gimp_drawable_detach (drawable);
gimp_image_add_layer (image_ID, layer_ID, 0);
/* pw - Last of all, attach the parasites (couldn't do it earlier -