don't pass GRAY images to plug_in_icc_profile_apply_rgb().

2006-11-17  Michael Natterer  <mitch@gimp.org>

	* app/file/file-open.c (file_open_profile_apply_rgb): don't pass
	GRAY images to plug_in_icc_profile_apply_rgb().
This commit is contained in:
Michael Natterer 2006-11-17 20:04:13 +00:00 committed by Michael Natterer
parent bacc2e29cf
commit 4ce3fda9e7
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2006-11-17 Michael Natterer <mitch@gimp.org>
* app/file/file-open.c (file_open_profile_apply_rgb): don't pass
GRAY images to plug_in_icc_profile_apply_rgb().
2006-11-17 Simon Budig <simon@gimp.org>
* app/plug-in/gimppluginprocedure.c: Fix the registration to

View File

@ -474,7 +474,8 @@ file_open_profile_apply_rgb (GimpImage *image,
{
GError *error = NULL;
if (! plug_in_icc_profile_apply_rgb (image, context, progress,
if (gimp_image_base_type (image) != GIMP_GRAY &&
! plug_in_icc_profile_apply_rgb (image, context, progress,
run_mode, &error))
{
gimp_message (image->gimp, G_OBJECT (progress),