core: Stop double-resizing on Fit Canvas to Layers

Resolves #16018
This patch extends a2c5d70c to also apply to the
"Fit Canvas to Layers" action. It prevents the non-rasterized
vector layer from being shifted out of place when the
canvas is resized.
This commit is contained in:
Alx Sa 2026-03-26 05:44:27 +00:00
parent a131100075
commit d1662f8f2c

View file

@ -42,6 +42,8 @@
#include "text/gimptextlayer.h"
#include "path/gimpvectorlayer.h"
#include "gimp-intl.h"
@ -115,6 +117,9 @@ gimp_image_resize_with_layers (GimpImage *image,
{
GimpItem *item = list->data;
if (gimp_item_is_vector_layer (item))
continue;
gimp_item_translate (item, offset_x, offset_y, TRUE);
}