[gimp] app: call gimp_blend_tool_halt() at the end of gimp_blend_tool_commit()



commit 8ff941e0ca0068b387d09d177240e496fe450388
Author: Michael Natterer <mitch gimp org>
Date:   Mon Jun 26 20:03:26 2017 +0200

    app: call gimp_blend_tool_halt() at the end of gimp_blend_tool_commit()
    
    This should always be done (commit implies a subsequent halt), this
    got lost during widget porting.

 app/tools/gimpblendtool.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/app/tools/gimpblendtool.c b/app/tools/gimpblendtool.c
index 259f209..3d63100 100644
--- a/app/tools/gimpblendtool.c
+++ b/app/tools/gimpblendtool.c
@@ -449,7 +449,6 @@ gimp_blend_tool_button_release (GimpTool              *tool,
       /*  a click outside any handle commits the tool
        */
       gimp_tool_control (tool, GIMP_TOOL_ACTION_COMMIT, display);
-      gimp_tool_control (tool, GIMP_TOOL_ACTION_HALT, display);
     }
 }
 
@@ -790,6 +789,8 @@ gimp_blend_tool_commit (GimpBlendTool *blend_tool)
 
       gimp_image_flush (gimp_display_get_image (tool->display));
     }
+
+  gimp_blend_tool_halt (blend_tool);
 }
 
 static void


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