[gimp/gimp-2-8] app: halt the transform tool when switching layer|selection|path transform



commit 72942f4e6b4aa25698b6432f7a20494f61ec3fca
Author: Michael Natterer <mitch gimp org>
Date:   Tue Feb 4 23:28:01 2014 +0100

    app: halt the transform tool when switching layer|selection|path transform
    
    (cherry picked from commit 1335bc42c89c7b739bba54400b6adcee3abd7423)

 app/tools/gimptransformtool.c |    9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/app/tools/gimptransformtool.c b/app/tools/gimptransformtool.c
index 009659c..8c31222 100644
--- a/app/tools/gimptransformtool.c
+++ b/app/tools/gimptransformtool.c
@@ -667,12 +667,17 @@ gimp_transform_tool_options_notify (GimpTool         *tool,
 
   GIMP_TOOL_CLASS (parent_class)->options_notify (tool, options, pspec);
 
+  if (! strcmp (pspec->name, "type"))
+    {
+      gimp_tool_control (tool, GIMP_TOOL_ACTION_HALT, tool->display);
+      return;
+    }
+
   if (tr_tool->use_grid)
     {
       gimp_draw_tool_pause (GIMP_DRAW_TOOL (tr_tool));
 
-      if (! strcmp (pspec->name, "type") ||
-          ! strcmp (pspec->name, "direction"))
+      if (! strcmp (pspec->name, "direction"))
         {
           if (tr_tool->function != TRANSFORM_CREATING)
             {


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