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:
parent
e7842fea26
commit
833e5858a3
1 changed files with 5 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue