Commit f38443f3 authored by Ell's avatar Ell

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.
parent d7345a6a
......@@ -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);
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment