app: when creating a layer mask from the layer's alpha, but the layer

has no alpha, simply fill the mask with complete opacity instead of
leaving the user with a completely empty mask (and thus a completely
transparent layer).
This commit is contained in:
Michael Natterer 2025-05-27 11:16:09 +02:00
parent 1697e4575f
commit d63c4deb68

View file

@ -2081,6 +2081,10 @@ gimp_layer_create_mask (GimpLayer *layer,
1.0);
}
}
else
{
gimp_channel_all (GIMP_CHANNEL (mask), FALSE);
}
break;
case GIMP_ADD_MASK_SELECTION: