Commit 776b4a9a authored by Ell's avatar Ell
Browse files

Bug 791386 - New layer with AUTO everything always uses normal mode

In gimp_layer_new(), set opacity and mode using the setter
functions, instead of modifying the members directly, so that all
the necessary side effects take place.
parent 0beef7d9
......@@ -69,8 +69,8 @@ gimp_layer_new (GimpImage *image,
opacity = CLAMP (opacity, GIMP_OPACITY_TRANSPARENT, GIMP_OPACITY_OPAQUE);
layer->opacity = opacity;
layer->mode = mode;
gimp_layer_set_opacity (layer, opacity, FALSE);
gimp_layer_set_mode (layer, mode, FALSE);
return layer;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment