copy the alpha channel from the correct source.

2005-06-13  Michael Natterer  <mitch@gimp.org>

	* app/core/gimplayer.c (gimp_layer_transform_color): copy the
	alpha channel from the correct source.
This commit is contained in:
Michael Natterer 2005-06-13 11:52:00 +00:00 committed by Michael Natterer
parent 697142c2f2
commit 4cded149d9
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2005-06-13 Michael Natterer <mitch@gimp.org>
* app/core/gimplayer.c (gimp_layer_transform_color): copy the
alpha channel from the correct source.
2005-06-13 Sven Neumann <sven@gimp.org>
* app/core/gimp-transform-resize.c: added missing brackets in macros.

View File

@ -797,7 +797,7 @@ gimp_layer_transform_color (GimpImage *gimage,
gimp_image_transform_color (gimage, drawable, d, src_type, s);
/* copy alpha channel */
d[layerPR->bytes - 1] = src[bufPR->bytes - 1];
d[layerPR->bytes - 1] = s[bufPR->bytes - 1];
s += bufPR->bytes;
d += layerPR->bytes;