@ -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>
|
2000-01-01 Shirasaki Yasuhiro <yasuhiro@gnome.gr.jp>
|
||||||
|
|
||||||
* plug-ins/common/max_rgb.c
|
* plug-ins/common/max_rgb.c
|
||||||
|
@ -334,13 +334,12 @@ edit_paste_as_new (GImage *invoke,
|
|||||||
if (!global_buf)
|
if (!global_buf)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
/* create a new image */
|
/* create a new image (always of type RGB) */
|
||||||
gimage = gimage_new (paste->width, paste->height, invoke->base_type);
|
gimage = gimage_new (paste->width, paste->height, RGB);
|
||||||
gimp_image_set_resolution (gimage, invoke->xresolution, invoke->yresolution);
|
gimp_image_set_resolution (gimage, invoke->xresolution, invoke->yresolution);
|
||||||
gimp_image_set_unit (gimage, invoke->unit);
|
gimp_image_set_unit (gimage, invoke->unit);
|
||||||
|
|
||||||
layer = layer_new (gimage, gimage->width, gimage->height,
|
layer = layer_new (gimage, gimage->width, gimage->height, RGBA_GIMAGE,
|
||||||
(invoke->base_type == RGB) ? RGBA_GIMAGE : GRAYA_GIMAGE,
|
|
||||||
_("Pasted Layer"), OPAQUE_OPACITY, NORMAL_MODE);
|
_("Pasted Layer"), OPAQUE_OPACITY, NORMAL_MODE);
|
||||||
|
|
||||||
/* add the new layer to the image */
|
/* add the new layer to the image */
|
||||||
|
@ -334,13 +334,12 @@ edit_paste_as_new (GImage *invoke,
|
|||||||
if (!global_buf)
|
if (!global_buf)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
/* create a new image */
|
/* create a new image (always of type RGB) */
|
||||||
gimage = gimage_new (paste->width, paste->height, invoke->base_type);
|
gimage = gimage_new (paste->width, paste->height, RGB);
|
||||||
gimp_image_set_resolution (gimage, invoke->xresolution, invoke->yresolution);
|
gimp_image_set_resolution (gimage, invoke->xresolution, invoke->yresolution);
|
||||||
gimp_image_set_unit (gimage, invoke->unit);
|
gimp_image_set_unit (gimage, invoke->unit);
|
||||||
|
|
||||||
layer = layer_new (gimage, gimage->width, gimage->height,
|
layer = layer_new (gimage, gimage->width, gimage->height, RGBA_GIMAGE,
|
||||||
(invoke->base_type == RGB) ? RGBA_GIMAGE : GRAYA_GIMAGE,
|
|
||||||
_("Pasted Layer"), OPAQUE_OPACITY, NORMAL_MODE);
|
_("Pasted Layer"), OPAQUE_OPACITY, NORMAL_MODE);
|
||||||
|
|
||||||
/* add the new layer to the image */
|
/* add the new layer to the image */
|
||||||
|
@ -334,13 +334,12 @@ edit_paste_as_new (GImage *invoke,
|
|||||||
if (!global_buf)
|
if (!global_buf)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
/* create a new image */
|
/* create a new image (always of type RGB) */
|
||||||
gimage = gimage_new (paste->width, paste->height, invoke->base_type);
|
gimage = gimage_new (paste->width, paste->height, RGB);
|
||||||
gimp_image_set_resolution (gimage, invoke->xresolution, invoke->yresolution);
|
gimp_image_set_resolution (gimage, invoke->xresolution, invoke->yresolution);
|
||||||
gimp_image_set_unit (gimage, invoke->unit);
|
gimp_image_set_unit (gimage, invoke->unit);
|
||||||
|
|
||||||
layer = layer_new (gimage, gimage->width, gimage->height,
|
layer = layer_new (gimage, gimage->width, gimage->height, RGBA_GIMAGE,
|
||||||
(invoke->base_type == RGB) ? RGBA_GIMAGE : GRAYA_GIMAGE,
|
|
||||||
_("Pasted Layer"), OPAQUE_OPACITY, NORMAL_MODE);
|
_("Pasted Layer"), OPAQUE_OPACITY, NORMAL_MODE);
|
||||||
|
|
||||||
/* add the new layer to the image */
|
/* add the new layer to the image */
|
||||||
|
Reference in New Issue
Block a user