Bug 785781 - Additional Free Selection step (hitting Enter)...

...is a regression in common cases

Commit the free select tool on double click inside the polygon.

Done by implementing GimpCanvasItem::hit() in GimpCanvasPolygon, using
ugly code.
This commit is contained in:
Michael Natterer
2017-12-01 22:19:42 +01:00
parent 568c147f8d
commit d60c237805
3 changed files with 64 additions and 10 deletions

View File

@ -1038,6 +1038,12 @@ gimp_tool_polygon_button_press (GimpToolWidget *widget,
}
else if (priv->polygon_closed)
{
if (press_type == GIMP_BUTTON_PRESS_DOUBLE &&
gimp_canvas_item_hit (priv->polygon, coords->x, coords->y))
{
gimp_tool_widget_response (widget, GIMP_TOOL_WIDGET_RESPONSE_CONFIRM);
}
return 0;
}
else