[gimp] plug-ins: PSD layer name can be NULL.
- From: Jacob Boerema <jboerema src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] plug-ins: PSD layer name can be NULL.
- Date: Tue, 18 May 2021 01:52:05 +0000 (UTC)
commit 32be0ec70977cb5371a6e4ad5466e5e5f43a49ba
Author: Jacob Boerema <jgboerema gmail com>
Date: Sun May 16 22:55:44 2021 -0400
plug-ins: PSD layer name can be NULL.
Apparently in a PSD a layer name can be NULL which
gimp_item_set_name doesn't like so only use it when
we have a valid layer name.
plug-ins/file-psd/psd-load.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/plug-ins/file-psd/psd-load.c b/plug-ins/file-psd/psd-load.c
index d31a325e5b..b803c627e4 100644
--- a/plug-ins/file-psd/psd-load.c
+++ b/plug-ins/file-psd/psd-load.c
@@ -1659,7 +1659,8 @@ add_layers (GimpImage *image,
* subsequent layers; the real group name is set by the group
* start marker.
*/
- gimp_item_set_name (GIMP_ITEM (layer), lyr_a[lidx]->name);
+ if (lyr_a[lidx]->name)
+ gimp_item_set_name (GIMP_ITEM (layer), lyr_a[lidx]->name);
/* Set the layer properties (skip this for layer group end
* markers; we set their properties when processing the start
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]