[gimp] app: treat a NO_MOTION release like NORMAL one in GimpToolRectangle



commit 5c8c30112a2ec308e7e69e78240d61d5b088b5b7
Author: Michael Natterer <mitch gimp org>
Date:   Thu Jun 29 16:48:02 2017 +0200

    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).

 app/display/gimptoolrectangle.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/app/display/gimptoolrectangle.c b/app/display/gimptoolrectangle.c
index 495f4d8..cfba1a6 100644
--- a/app/display/gimptoolrectangle.c
+++ b/app/display/gimptoolrectangle.c
@@ -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. */


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]