[gimp/gimp-2-10] app: copy the is-color-managed status when duplicating an image
- From: Ell <ell src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/gimp-2-10] app: copy the is-color-managed status when duplicating an image
- Date: Wed, 1 Aug 2018 09:07:44 +0000 (UTC)
commit ed631c842a601870a181958a6cf7360e2ba56ad7
Author: Ell <ell_se yahoo com>
Date: Wed Aug 1 05:01:31 2018 -0400
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.
(cherry picked from commit f38443f3b0e4fb91e7ca2f622b6adbb0241a4dfe)
app/core/gimpimage-duplicate.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/app/core/gimpimage-duplicate.c b/app/core/gimpimage-duplicate.c
index 9e327aee98..dae9d32a37 100644
--- a/app/core/gimpimage-duplicate.c
+++ b/app/core/gimpimage-duplicate.c
@@ -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);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]