mirror of https://github.com/GNOME/gimp.git
libgimp: use the right layer mode in gimp_layer_new_from_surface()
gimp_image_get_default_new_layer_mode() instead of GIMP_LAYER_MODE_NORMAL_LEGACY.
This commit is contained in:
parent
709f248438
commit
00f3c4e47b
|
@ -274,7 +274,8 @@ gimp_layer_new_from_surface (gint32 image_ID,
|
|||
layer = gimp_layer_new (image_ID, name, width, height,
|
||||
format == CAIRO_FORMAT_RGB24 ?
|
||||
GIMP_RGB_IMAGE : GIMP_RGBA_IMAGE,
|
||||
100.0, GIMP_LAYER_MODE_NORMAL_LEGACY);
|
||||
100.0,
|
||||
gimp_image_get_default_new_layer_mode (image_ID));
|
||||
|
||||
if (layer == -1)
|
||||
return -1;
|
||||
|
|
Loading…
Reference in New Issue