[gimp] app: call gimp_tool_control_halt() early in transform_tool_button_release()



commit 27d312b11025f9184d72b7d3da4508e7886072af
Author: Michael Natterer <mitch gimp org>
Date:   Wed Apr 20 22:19:09 2011 +0200

    app: call gimp_tool_control_halt() early in transform_tool_button_release()
    
    The generic shutdown triggered by shift-click executing copes with an
    already halted tool, but we don't want to add checks to tons of
    button_release functions.

 app/tools/gimptransformtool.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/app/tools/gimptransformtool.c b/app/tools/gimptransformtool.c
index 0176564..134d830 100644
--- a/app/tools/gimptransformtool.c
+++ b/app/tools/gimptransformtool.c
@@ -355,6 +355,8 @@ gimp_transform_tool_button_release (GimpTool              *tool,
   GimpTransformTool *tr_tool = GIMP_TRANSFORM_TOOL (tool);
   gint               i;
 
+  gimp_tool_control_halt (tool->control);
+
   /*  if we are creating, there is nothing to be done...exit  */
   if (tr_tool->function == TRANSFORM_CREATING && tr_tool->use_grid)
     return;
@@ -387,8 +389,6 @@ gimp_transform_tool_button_release (GimpTool              *tool,
 
       gimp_draw_tool_resume (GIMP_DRAW_TOOL (tool));
     }
-
-  gimp_tool_control_halt (tool->control);
 }
 
 static void



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