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.
This commit is contained in:
@ -2234,9 +2234,6 @@ gimp_rectangle_tool_halt (GimpRectangleTool *rect_tool)
|
|||||||
if (gimp_draw_tool_is_active (GIMP_DRAW_TOOL (rect_tool)))
|
if (gimp_draw_tool_is_active (GIMP_DRAW_TOOL (rect_tool)))
|
||||||
gimp_draw_tool_stop (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->display = NULL;
|
||||||
tool->drawable = NULL;
|
tool->drawable = NULL;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user