[gimp/gimp-2-10] plug-ins: fix wrong layer offset of psp layers.
- From: Jehan <jehanp src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/gimp-2-10] plug-ins: fix wrong layer offset of psp layers.
- Date: Tue, 25 Aug 2020 08:45:51 +0000 (UTC)
commit cebd634ec185eb6f9316a70412583f43a3499255
Author: Jacob Boerema <jgboerema gmail com>
Date: Fri Aug 21 19:35:15 2020 -0400
plug-ins: fix wrong layer offset of psp layers.
(cherry picked from commit dc80c78a26bec85bcb2efd4e32dbf6c35e711f2c)
plug-ins/common/file-psp.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/plug-ins/common/file-psp.c b/plug-ins/common/file-psp.c
index 11b37494eb..0e6d4ef4bb 100644
--- a/plug-ins/common/file-psp.c
+++ b/plug-ins/common/file-psp.c
@@ -1496,7 +1496,7 @@ read_layer_block (FILE *f,
name,
image_rect[2] - image_rect[0], image_rect[3] - image_rect[1],
width, height,
- saved_image_rect[0], saved_image_rect[1],
+ image_rect[0]+saved_image_rect[0], image_rect[1]+saved_image_rect[1],
opacity, blend_mode_name (blend_mode),
bitmap_count, channel_count);
@@ -1546,9 +1546,9 @@ read_layer_block (FILE *f,
gimp_image_insert_layer (image_ID, layer_ID, -1, -1);
- if (saved_image_rect[0] != 0 || saved_image_rect[1] != 0)
+ if (image_rect[0] != 0 || image_rect[1] != 0 || saved_image_rect[0] != 0 || saved_image_rect[1] != 0)
gimp_layer_set_offsets (layer_ID,
- saved_image_rect[0], saved_image_rect[1]);
+ image_rect[0] + saved_image_rect[0], image_rect[1] + saved_image_rect[1]);
if (!visibility)
gimp_item_set_visible (layer_ID, FALSE);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]