[gimp] app: fix image type check in gimp_image_color_managed_get_color_profile()
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: fix image type check in gimp_image_color_managed_get_color_profile()
- Date: Wed, 9 Sep 2015 18:47:46 +0000 (UTC)
commit a9c7af8b704a6ec600e78d2442d5b20dbc0030ca
Author: Michael Natterer <mitch gimp org>
Date: Wed Sep 9 20:46:28 2015 +0200
app: fix image type check in gimp_image_color_managed_get_color_profile()
Return the builtin profile for all except GRAY images, not for all
except INDEXED images, the latter have an RGB colormap.
app/core/gimpimage.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/app/core/gimpimage.c b/app/core/gimpimage.c
index e2c3d43..7b4adc1 100644
--- a/app/core/gimpimage.c
+++ b/app/core/gimpimage.c
@@ -1390,7 +1390,7 @@ gimp_image_color_managed_get_color_profile (GimpColorManaged *managed)
profile = gimp_image_get_color_profile (image);
- if (! profile && gimp_image_get_base_type (image) != GIMP_INDEXED)
+ if (! profile && gimp_image_get_base_type (image) != GIMP_GRAY)
profile = gimp_image_get_builtin_color_profile (image);
return profile;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]