[gimp/gimp-2-8] Bug 708517: Assertion on cage tool commit with ENTER + fix cage completion with ENTER.



commit 08c7d90823737a19ec31fb655f2ad3893f78924c
Author: Jehan <jehan girinstud io>
Date:   Sat Sep 21 20:43:11 2013 +1200

    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.
    (cherry picked from commit 5e331e1d252fc5b855ed333a9d74da436930640f)

 app/tools/gimpcagetool.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/app/tools/gimpcagetool.c b/app/tools/gimpcagetool.c
index bada159..8295aad 100644
--- a/app/tools/gimpcagetool.c
+++ b/app/tools/gimpcagetool.c
@@ -440,7 +440,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);


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