add an alpha channel if the layer has none and interpolation is requested.

2006-05-13  Michael Natterer  <mitch@gimp.org>

	* app/core/gimplayer.c (gimp_layer_transform): add an alpha
	channel if the layer has none and interpolation is requested.
	Works around bug #315048, the real fix would be to implement
	interpolation on layers without alpha.
This commit is contained in:
Michael Natterer 2006-05-13 21:49:29 +00:00 committed by Michael Natterer
parent 875af9c5cd
commit 8ffd5bb0ff
2 changed files with 14 additions and 0 deletions

View file

@ -1,3 +1,10 @@
2006-05-13 Michael Natterer <mitch@gimp.org>
* app/core/gimplayer.c (gimp_layer_transform): add an alpha
channel if the layer has none and interpolation is requested.
Works around bug #315048, the real fix would be to implement
interpolation on layers without alpha.
2006-05-13 Michael Natterer <mitch@gimp.org>
Added some new text layer actions and menu items (bug #316299).

View file

@ -783,6 +783,13 @@ gimp_layer_transform (GimpItem *item,
{
GimpLayer *layer = GIMP_LAYER (item);
#ifdef __GNUC__
#warning FIXME: make interpolated transformations work on layers without alpha
#endif
if (interpolation_type != GIMP_INTERPOLATION_NONE &&
! gimp_drawable_has_alpha (GIMP_DRAWABLE (item)))
gimp_layer_add_alpha (layer);
GIMP_ITEM_CLASS (parent_class)->transform (item, context, matrix, direction,
interpolation_type,
supersample, recursion_level,