[gimp] plug-ins: in file-psd, insert layers to image after writing buffers
- From: N/A <ell src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] plug-ins: in file-psd, insert layers to image after writing buffers
- Date: Wed, 6 Dec 2017 15:20:24 +0000 (UTC)
commit 67e685758de2c96eab87670f6143a71585da5970
Author: Ell <ell_se yahoo com>
Date: Wed Dec 6 10:14:56 2017 -0500
plug-ins: in file-psd, insert layers to image after writing buffers
When loading PSDs, insert layers to the image as the last step of
layer creation, after writing the pixel data to their buffers, so
that the data of child layers is available when their parent
group's projection is subseqeuently invalidated; otherwise, we'd
need an additional gimp_drawable_update() call after writing the
data to the buffers.
plug-ins/file-psd/psd-load.c | 14 +++++++-------
1 files changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/plug-ins/file-psd/psd-load.c b/plug-ins/file-psd/psd-load.c
index eace8be..f1461f9 100644
--- a/plug-ins/file-psd/psd-load.c
+++ b/plug-ins/file-psd/psd-load.c
@@ -1473,13 +1473,6 @@ add_layers (gint32 image_id,
}
}
- /* Insert the layer */
- if (lyr_a[lidx]->group_type == 0 || /* normal layer */
- lyr_a[lidx]->group_type == 3 /* group layer end marker */)
- {
- gimp_image_insert_layer (image_id, layer_id, parent_group_id, 0);
- }
-
/* Remember the active layer ID */
if (lidx == img_a->layer_state)
{
@@ -1626,6 +1619,13 @@ add_layers (gint32 image_id,
g_free (pixels);
}
}
+
+ /* Insert the layer */
+ if (lyr_a[lidx]->group_type == 0 || /* normal layer */
+ lyr_a[lidx]->group_type == 3 /* group layer end marker */)
+ {
+ gimp_image_insert_layer (image_id, layer_id, parent_group_id, 0);
+ }
}
for (cidx = 0; cidx < lyr_a[lidx]->num_channels; ++cidx)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]