mirror of https://github.com/GNOME/gimp.git
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:
parent
ff915b68c9
commit
5c8c30112a
|
@ -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. */
|
||||
|
|
Loading…
Reference in New Issue