From bb43a89ef885d5e46ef1194b40e86cc583dc2c58 Mon Sep 17 00:00:00 2001 From: Michael Natterer Date: Sun, 22 May 2016 19:53:10 +0200 Subject: [PATCH] app: treat the layer mask correctly in gimp_layer_get_opacity_at() Only take the mask into account if it is actually applied. --- app/core/gimplayer.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/core/gimplayer.c b/app/core/gimplayer.c index b6856ebae7..ce88a12a72 100644 --- a/app/core/gimplayer.c +++ b/app/core/gimplayer.c @@ -1235,7 +1235,8 @@ gimp_layer_get_opacity_at (GimpPickable *pickable, GEGL_SAMPLER_NEAREST, GEGL_ABYSS_NONE); } - if (layer->mask) + if (gimp_layer_get_mask (layer) && + gimp_layer_get_apply_mask (layer)) { gdouble mask_value;