Revert "app: prevent executing rectangle tool on the creating click"

This reverts commit 5a99bf4f47.
This commit is contained in:
Alexia Death 2011-10-06 20:16:06 +03:00
parent c8cde40952
commit 970782cfef
1 changed files with 0 additions and 15 deletions

View File

@ -198,9 +198,6 @@ struct _GimpRectangleToolPrivate
gdouble saved_y2;
gint suppress_updates;
/* Supress execute for one mouse release, needed to prevent single click create&commit */
gboolean suppress_execute;
};
@ -910,8 +907,6 @@ gimp_rectangle_tool_button_press (GimpTool *tool,
GIMP_LOG (RECTANGLE_TOOL, "coords->x = %f, coords->y = %f",
coords->x, coords->y);
private->suppress_execute = FALSE;
if (display != tool->display)
{
if (gimp_draw_tool_is_active (draw_tool))
@ -954,9 +949,6 @@ gimp_rectangle_tool_button_press (GimpTool *tool,
/* Remember that this rectangle was created from scratch. */
private->is_new = TRUE;
/*Suppress execute on release for the creating click*/
private->suppress_execute = TRUE;
if (gimp_rectangle_options_fixed_rule_active (options,
GIMP_RECTANGLE_TOOL_FIXED_SIZE))
{
@ -1082,13 +1074,6 @@ gimp_rectangle_tool_button_release (GimpTool *tool,
if (private->function == GIMP_RECTANGLE_TOOL_DEAD)
break;
/* Suppresed, don't execute yet!*/
if (private->suppress_execute)
{
private->suppress_execute = FALSE;
break;
}
if (gimp_rectangle_tool_execute (rect_tool))
gimp_rectangle_tool_halt (rect_tool);
break;