[gimp] gimp_channel_convert(): use gimp_drawable_convert_type()



commit cd60b9ef5c24dc5d32f83ebfa9b08efde2e8e1cd
Author: Michael Natterer <mitch gimp org>
Date:   Fri Sep 11 21:31:55 2009 +0200

    gimp_channel_convert(): use gimp_drawable_convert_type()

 app/core/gimpchannel.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/app/core/gimpchannel.c b/app/core/gimpchannel.c
index d212ab9..7d57c02 100644
--- a/app/core/gimpchannel.c
+++ b/app/core/gimpchannel.c
@@ -41,7 +41,6 @@
 #include "gimp.h"
 #include "gimp-utils.h"
 #include "gimpcontainer.h"
-#include "gimpdrawable-convert.h"
 #include "gimperror.h"
 #include "gimpimage.h"
 #include "gimpimage-quick-mask.h"
@@ -435,7 +434,7 @@ gimp_channel_convert (GimpItem  *item,
 
   if (! gimp_drawable_is_gray (drawable))
     {
-      gimp_drawable_convert_grayscale (drawable);
+      gimp_drawable_convert_type (drawable, NULL, GIMP_GRAY);
     }
 
   if (gimp_drawable_has_alpha (drawable))



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