Commit 5c8c3011 authored by Michael Natterer's avatar Michael Natterer 😴

app: treat a NO_MOTION release like NORMAL one in GimpToolRectangle

which stops unexpected behavior that was there even before the new
code (like a rectangle without a selection).
parent ff915b68
......@@ -1432,6 +1432,9 @@ gimp_tool_rectangle_button_release (GimpToolWidget *widget,
switch (release_type)
{
case GIMP_BUTTON_RELEASE_NO_MOTION:
/* Treat a long click without movement like a normal change */
case GIMP_BUTTON_RELEASE_NORMAL:
gimp_tool_rectangle_change_complete (rectangle);
break;
......@@ -1454,9 +1457,6 @@ gimp_tool_rectangle_button_release (GimpToolWidget *widget,
if (private->function != GIMP_TOOL_RECTANGLE_DEAD)
response = GIMP_TOOL_WIDGET_RESPONSE_CONFIRM;
break;
case GIMP_BUTTON_RELEASE_NO_MOTION:
break;
}
/* We must update this. */
......
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