[gimp] app: fix drawable type check in gimp_drawable_convert_indexed()



commit 1e7d5e3cb4d0e8cdf1b5c09a1d9badd013f99f2c
Author: Michael Natterer <mitch gimp org>
Date:   Sat Apr 7 00:01:29 2012 +0200

    app: fix drawable type check in gimp_drawable_convert_indexed()

 app/core/gimpdrawable-convert.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/app/core/gimpdrawable-convert.c b/app/core/gimpdrawable-convert.c
index 9bcb8bb..c86e5c3 100644
--- a/app/core/gimpdrawable-convert.c
+++ b/app/core/gimpdrawable-convert.c
@@ -100,7 +100,7 @@ gimp_drawable_convert_indexed (GimpDrawable *drawable,
 
   g_return_if_fail (GIMP_IS_DRAWABLE (drawable));
   g_return_if_fail (GIMP_IS_IMAGE (dest_image));
-  g_return_if_fail (! gimp_drawable_is_gray (drawable));
+  g_return_if_fail (! gimp_drawable_is_indexed (drawable));
 
   if (gimp_drawable_has_alpha (drawable))
     format = gimp_image_get_format (dest_image, GIMP_INDEXEDA_IMAGE);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]