app: don't pass a NULL profile to gimp_image_convert_color_profile()

In gimp_image_import_color_profile(), when converting
non-interactively, pass the image's built-in profile.
This commit is contained in:
Michael Natterer 2016-07-04 12:28:42 +02:00
parent a93cea0ef5
commit 8c2c22ccb4
1 changed files with 6 additions and 0 deletions

View File

@ -478,6 +478,12 @@ gimp_image_import_color_profile (GimpImage *image,
if (policy == GIMP_COLOR_PROFILE_POLICY_CONVERT)
{
if (! dest_profile)
{
dest_profile = gimp_image_get_builtin_color_profile (image);
g_object_ref (dest_profile);
}
gimp_image_convert_color_profile (image, dest_profile,
intent, bpc,
progress, NULL);