[gimp] app: don't run and color profile import if the image is not color managed



commit 7fffa9dc2aa95078bc32734f1b343a10ef51baa9
Author: Michael Natterer <mitch gimp org>
Date:   Sun May 8 18:10:50 2016 +0200

    app: don't run and color profile import if the image is not color managed

 app/core/gimpimage-color-profile.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/app/core/gimpimage-color-profile.c b/app/core/gimpimage-color-profile.c
index 5d3b8fc..9ac4e9d 100644
--- a/app/core/gimpimage-color-profile.c
+++ b/app/core/gimpimage-color-profile.c
@@ -440,7 +440,8 @@ gimp_image_import_color_profile (GimpImage    *image,
   g_return_if_fail (GIMP_IS_CONTEXT (context));
   g_return_if_fail (progress == NULL || GIMP_IS_PROGRESS (progress));
 
-  if (gimp_image_get_color_profile (image))
+  if (gimp_image_get_is_color_managed (image) &&
+      gimp_image_get_color_profile (image))
     {
       GimpColorProfilePolicy  policy;
       GimpColorProfile       *dest_profile = NULL;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]