[gimp] app: don't disable the blend tool on indexed drawables



commit 981f039053a0ec29673e43b6c7e24393c8ca0e39
Author: Michael Natterer <mitch gimp org>
Date:   Mon Apr 30 01:04:19 2012 +0200

    app: don't disable the blend tool on indexed drawables

 app/tools/gimpblendtool.c |   10 +---------
 1 files changed, 1 insertions(+), 9 deletions(-)
---
diff --git a/app/tools/gimpblendtool.c b/app/tools/gimpblendtool.c
index 0827c59..5a64a43 100644
--- a/app/tools/gimpblendtool.c
+++ b/app/tools/gimpblendtool.c
@@ -160,13 +160,6 @@ gimp_blend_tool_initialize (GimpTool     *tool,
       return FALSE;
     }
 
-  if (gimp_drawable_is_indexed (drawable))
-    {
-      g_set_error_literal (error, GIMP_ERROR, GIMP_FAILED,
-			   _("Blend does not operate on indexed layers."));
-      return FALSE;
-    }
-
   if (gimp_viewable_get_children (GIMP_VIEWABLE (drawable)))
     {
       g_set_error_literal (error, GIMP_ERROR, GIMP_FAILED,
@@ -369,8 +362,7 @@ gimp_blend_tool_cursor_update (GimpTool         *tool,
   GimpDrawable       *drawable = gimp_image_get_active_drawable (image);
   GimpCursorModifier  modifier = GIMP_CURSOR_MODIFIER_NONE;
 
-  if (gimp_drawable_is_indexed (drawable)                   ||
-      gimp_viewable_get_children (GIMP_VIEWABLE (drawable)) ||
+  if (gimp_viewable_get_children (GIMP_VIEWABLE (drawable)) ||
       gimp_item_is_content_locked (GIMP_ITEM (drawable)))
     {
       modifier = GIMP_CURSOR_MODIFIER_BAD;



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