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.
This commit is contained in:
Jehan 2019-07-02 15:18:14 +02:00
parent f20b873396
commit 8ccd49ac78
1 changed files with 2 additions and 1 deletions

View File

@ -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))
return;