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.
This commit is contained in:
Michael Natterer 2015-08-19 17:57:48 +02:00
parent dd8a822aae
commit e4d5f05373
1 changed files with 2 additions and 5 deletions

View File

@ -377,15 +377,12 @@ colorsel_cmyk_config_changed (ColorselCmyk *module)
if (! config) if (! config)
goto out; goto out;
rgb_profile = gimp_color_config_get_rgb_color_profile (config, NULL);
cmyk_profile = gimp_color_config_get_cmyk_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) if (! cmyk_profile)
goto out; goto out;
rgb_profile = gimp_color_profile_new_srgb ();
text = g_strdup_printf (_("Profile: %s"), text = g_strdup_printf (_("Profile: %s"),
gimp_color_profile_get_label (cmyk_profile)); gimp_color_profile_get_label (cmyk_profile));
gtk_label_set_text (GTK_LABEL (module->name_label), text); gtk_label_set_text (GTK_LABEL (module->name_label), text);