Commit 32725df2 authored by Michael Natterer's avatar Michael Natterer 😴

app: always emit GimpImage::profile-changed when converting from/to GRAY

so the display profile transform is properly updated.
parent b3dbb968
...@@ -1101,11 +1101,19 @@ gimp_image_convert_type (GimpImage *image, ...@@ -1101,11 +1101,19 @@ gimp_image_convert_type (GimpImage *image,
case GIMP_RGB: case GIMP_RGB:
case GIMP_INDEXED: case GIMP_INDEXED:
if (old_type == GIMP_GRAY) if (old_type == GIMP_GRAY)
{
if (gimp_image_get_color_profile (image))
gimp_image_set_color_profile (image, NULL, NULL); gimp_image_set_color_profile (image, NULL, NULL);
else
gimp_color_managed_profile_changed (GIMP_COLOR_MANAGED (image));
}
break; break;
case GIMP_GRAY: case GIMP_GRAY:
if (gimp_image_get_color_profile (image))
gimp_image_set_color_profile (image, NULL, NULL); gimp_image_set_color_profile (image, NULL, NULL);
else
gimp_color_managed_profile_changed (GIMP_COLOR_MANAGED (image));
break; break;
} }
......
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