[gimp] app: fix resizing of image-sized layers when resizing canvas
- From: N/A <ell src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: fix resizing of image-sized layers when resizing canvas
- Date: Mon, 26 Mar 2018 08:53:46 +0000 (UTC)
commit 806d1b0510bf56f5bd67c37e1f5d8c33d52888f6
Author: Ell <ell_se yahoo com>
Date: Mon Mar 26 04:26:52 2018 -0400
app: fix resizing of image-sized layers when resizing canvas
In gimp_image_resize_with_layers(), calculate the set of resized
layers before changing the image size, so that we correctly
identify image-sized layers w.r.t. the old image size. (Fixes
commit 139a23451ddc588c91610f67daa799afc2f89080.)
app/core/gimpimage-resize.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/app/core/gimpimage-resize.c b/app/core/gimpimage-resize.c
index 4a40e63..64b0a06 100644
--- a/app/core/gimpimage-resize.c
+++ b/app/core/gimpimage-resize.c
@@ -90,6 +90,10 @@ gimp_image_resize_with_layers (GimpImage *image,
gimp_image_undo_group_start (image, GIMP_UNDO_GROUP_IMAGE_RESIZE,
C_("undo-type", "Resize Image"));
+ resize_layers = gimp_image_item_list_get_list (image,
+ GIMP_ITEM_TYPE_LAYERS,
+ layer_set);
+
old_width = gimp_image_get_width (image);
old_height = gimp_image_get_height (image);
@@ -117,10 +121,6 @@ gimp_image_resize_with_layers (GimpImage *image,
queue = gimp_object_queue_new (progress);
progress = GIMP_PROGRESS (queue);
- resize_layers = gimp_image_item_list_get_list (image,
- GIMP_ITEM_TYPE_LAYERS,
- layer_set);
-
for (list = resize_layers; list; list = g_list_next (list))
{
GimpItem *item = list->data;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]