From da380504bf3300a07ec956bcc23bb43437d6d352 Mon Sep 17 00:00:00 2001 From: Michael Natterer Date: Fri, 20 May 2011 19:15:31 +0200 Subject: [PATCH] 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 file changed, 3 deletions(-) diff --git a/app/tools/gimprectangletool.c b/app/tools/gimprectangletool.c index 5bf67df2fe..ec40c940ce 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;