From 7fffa9dc2aa95078bc32734f1b343a10ef51baa9 Mon Sep 17 00:00:00 2001 From: Michael Natterer Date: Sun, 8 May 2016 18:10:50 +0200 Subject: [PATCH] app: don't run and color profile import if the image is not color managed --- app/core/gimpimage-color-profile.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/core/gimpimage-color-profile.c b/app/core/gimpimage-color-profile.c index 5d3b8fc90e..9ac4e9dbe8 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;