From 2294b8da26d2c306944c6609e7a1c94e4ec9d77d Mon Sep 17 00:00:00 2001 From: Jehan Date: Sat, 21 Sep 2013 21:07:29 +1200 Subject: [PATCH] Bug 708519 - Fix using Backspace to delete a closed cage tool's points. --- app/tools/gimpcagetool.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/app/tools/gimpcagetool.c b/app/tools/gimpcagetool.c index bf64409d4e3..8d9496567ec 100644 --- a/app/tools/gimpcagetool.c +++ b/app/tools/gimpcagetool.c @@ -404,13 +404,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;