[gimp] app: return built-in profiles from GimpColorManaged::get_color_profile(image)
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: return built-in profiles from GimpColorManaged::get_color_profile(image)
- Date: Sun, 8 May 2016 16:38:23 +0000 (UTC)
commit 34a826d735d332d21fa870f949893a396ede3adb
Author: Michael Natterer <mitch gimp org>
Date: Sun May 8 18:15:36 2016 +0200
app: return built-in profiles from GimpColorManaged::get_color_profile(image)
if the image is not color managed.
app/core/gimpimage.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/app/core/gimpimage.c b/app/core/gimpimage.c
index 899dbcd..7e6eb95 100644
--- a/app/core/gimpimage.c
+++ b/app/core/gimpimage.c
@@ -1446,10 +1446,11 @@ gimp_image_color_managed_get_icc_profile (GimpColorManaged *managed,
static GimpColorProfile *
gimp_image_color_managed_get_color_profile (GimpColorManaged *managed)
{
- GimpImage *image = GIMP_IMAGE (managed);
- GimpColorProfile *profile;
+ GimpImage *image = GIMP_IMAGE (managed);
+ GimpColorProfile *profile = NULL;
- profile = gimp_image_get_color_profile (image);
+ if (gimp_image_get_is_color_managed (image))
+ profile = gimp_image_get_color_profile (image);
if (! profile)
profile = gimp_image_get_builtin_color_profile (image);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]