From fa593afdbf14aa17ff4e1cd91ec907bca57ae1f3 Mon Sep 17 00:00:00 2001 From: Sven Neumann Date: Tue, 14 Jun 2005 20:54:03 +0000 Subject: [PATCH] allow to raise a layer w/o an alpha channel. 2005-06-14 Sven Neumann * app/core/gimpimage.c (gimp_image_raise_layer) (gimp_image_raise_layer_to_top): allow to raise a layer w/o an alpha channel. --- ChangeLog | 5 +++-- app/core/gimpimage.c | 6 ------ 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/ChangeLog b/ChangeLog index 3d28ec2604..9e75bbf702 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,7 +1,8 @@ 2005-06-14 Sven Neumann - * app/core/gimpimage.c (gimp_image_raise_layer): allow to raise a - layer w/o an alpha channel. + * app/core/gimpimage.c (gimp_image_raise_layer) + (gimp_image_raise_layer_to_top): allow to raise a layer w/o an + alpha channel. 2005-06-14 Sven Neumann diff --git a/app/core/gimpimage.c b/app/core/gimpimage.c index d1632738fb..3d23ef99d6 100644 --- a/app/core/gimpimage.c +++ b/app/core/gimpimage.c @@ -2972,12 +2972,6 @@ gimp_image_raise_layer_to_top (GimpImage *gimage, return FALSE; } - if (! gimp_drawable_has_alpha (GIMP_DRAWABLE (layer))) - { - g_message (_("Cannot raise a layer without alpha.")); - return FALSE; - } - return gimp_image_position_layer (gimage, layer, 0, TRUE, _("Raise Layer to Top")); }