[gimp] modules: don't use the configured RGB profile in the CMCK color selector
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] modules: don't use the configured RGB profile in the CMCK color selector
- Date: Wed, 19 Aug 2015 15:59:52 +0000 (UTC)
commit e4d5f05373a607a6f3f716f519656777ae4d52ec
Author: Michael Natterer <mitch gimp org>
Date: Wed Aug 19 17:57:48 2015 +0200
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 files changed, 2 insertions(+), 5 deletions(-)
---
diff --git a/modules/color-selector-cmyk.c b/modules/color-selector-cmyk.c
index 4951321..a4c8ba0 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]