[gimp/goat-invasion] app: fix drawable type check in gimp_drawable_convert_indexed()



commit f4649cd02ba3d1033b72b2edbd4309355137c26b
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]