mirror of https://github.com/GNOME/gimp.git
plug-ins: store a CMYK profile as soft-proof profile in the right place.
Fixing !646. The call to gimp_image_set_simulation_profile() was only happening for merged PSD mode (either explicit call or when special-cases such as no layers). This is the right place to store the CMYK profile in all cases.
This commit is contained in:
parent
22986b6912
commit
8feddf9cd5
|
@ -1161,6 +1161,8 @@ load_resource_1039 (const PSDimageres *res_a,
|
|||
gimp_color_profile_is_cmyk (profile))
|
||||
{
|
||||
img_a->cmyk_profile = profile;
|
||||
/* Store CMYK profile in GimpImage if attached */
|
||||
gimp_image_set_simulation_profile (image, img_a->cmyk_profile);
|
||||
}
|
||||
else if (img_a->color_mode == PSD_LAB)
|
||||
{
|
||||
|
|
|
@ -2472,11 +2472,6 @@ add_merged_image (GimpImage *image,
|
|||
error);
|
||||
g_free (pixels);
|
||||
pixels = dst0;
|
||||
|
||||
/* Store CMYK profile in GimpImage if attached */
|
||||
if (img_a->cmyk_profile &&
|
||||
gimp_color_profile_is_cmyk (img_a->cmyk_profile))
|
||||
gimp_image_set_simulation_profile (image, img_a->cmyk_profile);
|
||||
}
|
||||
else if (img_a->color_mode == PSD_LAB)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue