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:
@ -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
|
||||
|
Reference in New Issue
Block a user