[gimp] Issue #3597: Free selection: CRITICAL when double clicking on a handle.



commit 8ccd49ac78114c05a2b2183adc149416f9cad370
Author: Jehan <jehan girinstud io>
Date:   Tue Jul 2 15:18:14 2019 +0200

    Issue #3597: Free selection: CRITICAL when double clicking on a handle.
    
    GIMP_BUTTON_PRESS_DOUBLE press event would be called before the second
    release event happens hence the tool control would not be properly
    halted. Just pass through the gimp_selection_tool_start_edit() check for
    any press events other than GIMP_BUTTON_PRESS_NORMAL.

 app/tools/gimpfreeselecttool.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/app/tools/gimpfreeselecttool.c b/app/tools/gimpfreeselecttool.c
index b5624f5718..71baa00b0c 100644
--- a/app/tools/gimpfreeselecttool.c
+++ b/app/tools/gimpfreeselecttool.c
@@ -179,7 +179,8 @@ gimp_free_select_tool_button_press (GimpTool            *tool,
   GimpPolygonSelectTool     *poly_sel = GIMP_POLYGON_SELECT_TOOL (tool);
   GimpFreeSelectToolPrivate *priv     = free_sel->priv;
 
-  if (gimp_selection_tool_start_edit (GIMP_SELECTION_TOOL (poly_sel),
+  if (press_type == GIMP_BUTTON_PRESS_NORMAL &&
+      gimp_selection_tool_start_edit (GIMP_SELECTION_TOOL (poly_sel),
                                       display, coords))
     return;
 


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