From e4d5f05373a607a6f3f716f519656777ae4d52ec Mon Sep 17 00:00:00 2001 From: Michael Natterer Date: Wed, 19 Aug 2015 17:57:48 +0200 Subject: [PATCH] modules: don't use the configured RGB profile in the CMCK color selector it gets its color as GimpRGB which is always sRGB. Instead always use the built-in sRGB profile. --- modules/color-selector-cmyk.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/modules/color-selector-cmyk.c b/modules/color-selector-cmyk.c index 495132176d..a4c8ba0a60 100644 --- a/modules/color-selector-cmyk.c +++ b/modules/color-selector-cmyk.c @@ -377,15 +377,12 @@ colorsel_cmyk_config_changed (ColorselCmyk *module) if (! config) goto out; - rgb_profile = gimp_color_config_get_rgb_color_profile (config, NULL); cmyk_profile = gimp_color_config_get_cmyk_color_profile (config, NULL); - - if (! rgb_profile) - rgb_profile = gimp_color_profile_new_srgb (); - if (! cmyk_profile) goto out; + rgb_profile = gimp_color_profile_new_srgb (); + text = g_strdup_printf (_("Profile: %s"), gimp_color_profile_get_label (cmyk_profile)); gtk_label_set_text (GTK_LABEL (module->name_label), text);