--Sven
This commit is contained in:
Sven Neumann
2000-01-01 13:59:58 +00:00
parent 7e40430246
commit 5969ed3911
4 changed files with 17 additions and 15 deletions

View File

@ -1,3 +1,8 @@
Sat Jan 1 14:57:19 CET 2000 Sven Neumann <sven@gimp.org>
* app/global_edit.c: Paste as New now always creates a RGB image,
independent of the image it is invoked from. Fixes bug #4871.
2000-01-01 Shirasaki Yasuhiro <yasuhiro@gnome.gr.jp>
* plug-ins/common/max_rgb.c

View File

@ -334,13 +334,12 @@ edit_paste_as_new (GImage *invoke,
if (!global_buf)
return FALSE;
/* create a new image */
gimage = gimage_new (paste->width, paste->height, invoke->base_type);
/* create a new image (always of type RGB) */
gimage = gimage_new (paste->width, paste->height, RGB);
gimp_image_set_resolution (gimage, invoke->xresolution, invoke->yresolution);
gimp_image_set_unit (gimage, invoke->unit);
layer = layer_new (gimage, gimage->width, gimage->height,
(invoke->base_type == RGB) ? RGBA_GIMAGE : GRAYA_GIMAGE,
layer = layer_new (gimage, gimage->width, gimage->height, RGBA_GIMAGE,
_("Pasted Layer"), OPAQUE_OPACITY, NORMAL_MODE);
/* add the new layer to the image */

View File

@ -334,13 +334,12 @@ edit_paste_as_new (GImage *invoke,
if (!global_buf)
return FALSE;
/* create a new image */
gimage = gimage_new (paste->width, paste->height, invoke->base_type);
/* create a new image (always of type RGB) */
gimage = gimage_new (paste->width, paste->height, RGB);
gimp_image_set_resolution (gimage, invoke->xresolution, invoke->yresolution);
gimp_image_set_unit (gimage, invoke->unit);
layer = layer_new (gimage, gimage->width, gimage->height,
(invoke->base_type == RGB) ? RGBA_GIMAGE : GRAYA_GIMAGE,
layer = layer_new (gimage, gimage->width, gimage->height, RGBA_GIMAGE,
_("Pasted Layer"), OPAQUE_OPACITY, NORMAL_MODE);
/* add the new layer to the image */

View File

@ -334,13 +334,12 @@ edit_paste_as_new (GImage *invoke,
if (!global_buf)
return FALSE;
/* create a new image */
gimage = gimage_new (paste->width, paste->height, invoke->base_type);
/* create a new image (always of type RGB) */
gimage = gimage_new (paste->width, paste->height, RGB);
gimp_image_set_resolution (gimage, invoke->xresolution, invoke->yresolution);
gimp_image_set_unit (gimage, invoke->unit);
layer = layer_new (gimage, gimage->width, gimage->height,
(invoke->base_type == RGB) ? RGBA_GIMAGE : GRAYA_GIMAGE,
layer = layer_new (gimage, gimage->width, gimage->height, RGBA_GIMAGE,
_("Pasted Layer"), OPAQUE_OPACITY, NORMAL_MODE);
/* add the new layer to the image */