app: treat the layer mask correctly in gimp_layer_get_opacity_at()

Only take the mask into account if it is actually applied.
This commit is contained in:
Michael Natterer 2016-05-22 19:53:10 +02:00
parent adaa67548e
commit bb43a89ef8

View file

@ -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;