app: fix merging a pass-through layer group.

See issue raised in gimp-ux#681.
A merged pass-through is typically bigger than its contents' bounding
box.
This commit is contained in:
Jehan 2025-10-22 23:51:24 +02:00
parent e7842fea26
commit 833e5858a3

View file

@ -489,6 +489,11 @@ gimp_image_merge_group_layer (GimpImage *image,
*/
if (pass_through_buffer)
{
/* The group duplicate may be smaller than actual render in case
* of pass-through groups.
*/
gimp_item_set_size (GIMP_ITEM (layer), rect.width, rect.height);
if (rect.x != 0 || rect.y != 0)
{
GeglBuffer *buffer;