[gimp] app: don't call gimp_tool_control_halt() in gimp_rectangle_tool_halt()



commit da380504bf3300a07ec956bcc23bb43437d6d352
Author: Michael Natterer <mitch gimp org>
Date:   Fri May 20 19:15:31 2011 +0200

    app: don't call gimp_tool_control_halt() in gimp_rectangle_tool_halt()
    
    It's not the rectangle tool's business to manage press/motion/release
    cycles. Fixes warnings in the crop tool.

 app/tools/gimprectangletool.c |    3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)
---
diff --git a/app/tools/gimprectangletool.c b/app/tools/gimprectangletool.c
index 5bf67df..ec40c94 100644
--- a/app/tools/gimprectangletool.c
+++ b/app/tools/gimprectangletool.c
@@ -2234,9 +2234,6 @@ gimp_rectangle_tool_halt (GimpRectangleTool *rect_tool)
   if (gimp_draw_tool_is_active (GIMP_DRAW_TOOL (rect_tool)))
     gimp_draw_tool_stop (GIMP_DRAW_TOOL (rect_tool));
 
-  if (gimp_tool_control_is_active (tool->control))
-    gimp_tool_control_halt (tool->control);
-
   tool->display  = NULL;
   tool->drawable = NULL;
 



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