From 5e331e1d252fc5b855ed333a9d74da436930640f Mon Sep 17 00:00:00 2001 From: Jehan Date: Sat, 21 Sep 2013 20:43:11 +1200 Subject: [PATCH] Bug 708517: Assertion on cage tool commit with ENTER + fix cage completion with ENTER. The key press handler must return TRUE on successfully processing the key, otherwise the handler ends up being run several times. --- app/tools/gimpcagetool.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/tools/gimpcagetool.c b/app/tools/gimpcagetool.c index 457d34b9fc..bf64409d4e 100644 --- a/app/tools/gimpcagetool.c +++ b/app/tools/gimpcagetool.c @@ -438,7 +438,7 @@ gimp_cage_tool_key_press (GimpTool *tool, gimp_tool_control (tool, GIMP_TOOL_ACTION_HALT, display); } - break; + return TRUE; case GDK_KEY_Escape: gimp_tool_control (tool, GIMP_TOOL_ACTION_HALT, display);