app: Correctly place merged down layer...
when the image is in indexed color mode, and bottom layer doesn't have an alpha channel. Resolves: #4945
This commit is contained in:
@ -620,8 +620,6 @@ gimp_image_merge_layers (GimpImage *image,
|
|||||||
|
|
||||||
flatten_node = gimp_gegl_create_flatten_node (
|
flatten_node = gimp_gegl_create_flatten_node (
|
||||||
&bg, gimp_layer_get_real_composite_space (bottom_layer));
|
&bg, gimp_layer_get_real_composite_space (bottom_layer));
|
||||||
|
|
||||||
position = 0;
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@ -643,7 +641,14 @@ gimp_image_merge_layers (GimpImage *image,
|
|||||||
|
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (merge_type == GIMP_FLATTEN_IMAGE)
|
||||||
|
{
|
||||||
|
position = 0;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
/* Find the index in the layer list of the bottom layer--we need this
|
/* Find the index in the layer list of the bottom layer--we need this
|
||||||
* in order to add the final, merged layer to the layer list correctly
|
* in order to add the final, merged layer to the layer list correctly
|
||||||
*/
|
*/
|
||||||
|
Reference in New Issue
Block a user