[gimp] app: halt the transform tool when switching layer|selection|path transform



commit 1335bc42c89c7b739bba54400b6adcee3abd7423
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

 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 984fc43..4c7f7a7 100644
--- a/app/tools/gimptransformtool.c
+++ b/app/tools/gimptransformtool.c
@@ -921,12 +921,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]