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