[gimp/gimp-2-8] Bug 708519 - Fix using Backspace to delete a closed cage tool's points. (cherry picked from commit 2



commit 42de6e065c153e866196e04b21116f881250b910
Author: Jehan <jehan girinstud io>
Date:   Sat Sep 21 21:07:29 2013 +1200

    Bug 708519 - Fix using Backspace to delete a closed cage tool's points.
    (cherry picked from commit 2294b8da26d2c306944c6609e7a1c94e4ec9d77d)

 app/tools/gimpcagetool.c |   10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)
---
diff --git a/app/tools/gimpcagetool.c b/app/tools/gimpcagetool.c
index 8295aad..9297189 100644
--- a/app/tools/gimpcagetool.c
+++ b/app/tools/gimpcagetool.c
@@ -407,13 +407,19 @@ gimp_cage_tool_key_press (GimpTool    *tool,
         {
           gimp_cage_tool_remove_last_handle (ct);
         }
-      else if (ct->cage_complete && ct->tool_state == CAGE_STATE_WAIT)
+      else if (ct->cage_complete && ct->tool_state == DEFORM_STATE_WAIT)
         {
           gimp_cage_config_remove_selected_points(ct->config);
 
           /* if the cage have less than 3 handles, we reopen it */
           if (gimp_cage_config_get_n_points(ct->config) <= 2)
-            ct->cage_complete = FALSE;
+            {
+              ct->cage_complete = FALSE;
+              ct->tool_state = CAGE_STATE_WAIT;
+            }
+
+          gimp_cage_tool_compute_coef (ct);
+          gimp_cage_tool_render_node_update (ct);
         }
       return TRUE;
 


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