mirror of https://github.com/GNOME/gimp.git
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:
parent
bacc2e29cf
commit
4ce3fda9e7
|
@ -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
|
||||
|
|
|
@ -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),
|
||||
|
|
Loading…
Reference in New Issue