Commit 8ccd49ac authored by Jehan's avatar Jehan

Issue #3597: Free selection: CRITICAL when double clicking on a handle.

GIMP_BUTTON_PRESS_DOUBLE press event would be called before the second
release event happens hence the tool control would not be properly
halted. Just pass through the gimp_selection_tool_start_edit() check for
any press events other than GIMP_BUTTON_PRESS_NORMAL.
parent f20b8733
......@@ -179,7 +179,8 @@ gimp_free_select_tool_button_press (GimpTool *tool,
GimpPolygonSelectTool *poly_sel = GIMP_POLYGON_SELECT_TOOL (tool);
GimpFreeSelectToolPrivate *priv = free_sel->priv;
if (gimp_selection_tool_start_edit (GIMP_SELECTION_TOOL (poly_sel),
if (press_type == GIMP_BUTTON_PRESS_NORMAL &&
gimp_selection_tool_start_edit (GIMP_SELECTION_TOOL (poly_sel),
display, coords))
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment