mirror of https://github.com/GNOME/gimp.git
app: copy the is-color-managed status when duplicating an image
When duplicating an image, copy the source image's is-color-managed status to the duplicated image, instead of having the duplicated image always be color managed. In particular, do this before duplicating the layers, so that we don't convert the duplicated layers from sRGB to the image's profile when duplicating an image with a non-sRGB profile but with color management turned off.
This commit is contained in:
parent
d7345a6a1f
commit
f38443f3b0
|
@ -524,7 +524,9 @@ static void
|
|||
gimp_image_duplicate_color_profile (GimpImage *image,
|
||||
GimpImage *new_image)
|
||||
{
|
||||
GimpColorProfile *profile = gimp_image_get_color_profile (image);
|
||||
GimpColorProfile *profile = gimp_image_get_color_profile (image);
|
||||
gboolean is_color_managed = gimp_image_get_is_color_managed (image);
|
||||
|
||||
gimp_image_set_color_profile (new_image, profile, NULL);
|
||||
gimp_image_set_color_profile (new_image, profile, NULL);
|
||||
gimp_image_set_is_color_managed (new_image, is_color_managed, FALSE);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue