allow adding a mask to a layer without alpha channel (bug #316207).

2007-03-22  Sven Neumann  <sven@gimp.org>

	* app/core/gimplayer.c (gimp_layer_add_mask): allow adding a mask
	to a layer without alpha channel (bug #316207).

svn path=/trunk/; revision=22163
This commit is contained in:
Sven Neumann 2007-03-22 17:58:42 +00:00 committed by Sven Neumann
parent 83d885b194
commit ce489b17ae
2 changed files with 5 additions and 7 deletions

View File

@ -1,3 +1,8 @@
2007-03-22 Sven Neumann <sven@gimp.org>
* app/core/gimplayer.c (gimp_layer_add_mask): allow adding a mask
to a layer without alpha channel (bug #316207).
2007-03-21 Sven Neumann <sven@gimp.org>
* plug-ins/common/svg.c: fixed incorrect PDB documentation.

View File

@ -1234,13 +1234,6 @@ gimp_layer_add_mask (GimpLayer *layer,
return NULL;
}
if (! gimp_drawable_has_alpha (GIMP_DRAWABLE (layer)))
{
g_message (_("Cannot add layer mask to a layer "
"with no alpha channel."));
return NULL;
}
if ((gimp_item_width (GIMP_ITEM (layer)) !=
gimp_item_width (GIMP_ITEM (mask))) ||
(gimp_item_height (GIMP_ITEM (layer)) !=