mirror of https://github.com/GNOME/gimp.git
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:
parent
83d885b194
commit
ce489b17ae
|
@ -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.
|
||||
|
|
|
@ -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)) !=
|
||||
|
|
Loading…
Reference in New Issue