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).
This commit is contained in:
Michael Natterer 2017-06-29 16:48:02 +02:00
parent ff915b68c9
commit 5c8c30112a
1 changed files with 3 additions and 3 deletions

View File

@ -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. */