[gimp/gimp-2-8] Bug 779730 - Convert to Color profile fails on images with empty layer groups
- From: Michael Schumacher <schumaml src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/gimp-2-8] Bug 779730 - Convert to Color profile fails on images with empty layer groups
- Date: Tue, 7 Mar 2017 23:47:55 +0000 (UTC)
commit 114f8824a6c12abce616215c01c071364f27d5e5
Author: Michael Schumacher <schumaml gmx de>
Date: Tue Mar 7 23:14:30 2017 +0100
Bug 779730 - Convert to Color profile fails on images with empty layer groups
plug-ins/common/lcms.c | 21 ++++++++++++---------
1 files changed, 12 insertions(+), 9 deletions(-)
---
diff --git a/plug-ins/common/lcms.c b/plug-ins/common/lcms.c
index 5974aaa..696af46 100644
--- a/plug-ins/common/lcms.c
+++ b/plug-ins/common/lcms.c
@@ -1055,18 +1055,21 @@ lcms_layers_transform_rgb (gint *layers,
gint *children;
gint num_children;
- children = gimp_item_get_children (layers[i], &num_children);
+ if (gimp_item_is_group (layers[i]))
+ {
+ children = gimp_item_get_children (layers[i], &num_children);
- if (children)
- {
- lcms_layers_transform_rgb (children, num_children,
- src_profile, dest_profile,
- intent, bpc);
+ if (children)
+ {
+ lcms_layers_transform_rgb (children, num_children,
+ src_profile, dest_profile,
+ intent, bpc);
- g_free (children);
+ g_free (children);
+ }
- continue;
- }
+ continue;
+ }
switch (drawable->bpp)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]