[gimp] Bug 708519 - Fix using Backspace to delete a closed cage tool's points.
- From: Jehan Pagès <jehanp src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] Bug 708519 - Fix using Backspace to delete a closed cage tool's points.
- Date: Sat, 21 Sep 2013 14:23:28 +0000 (UTC)
commit 2294b8da26d2c306944c6609e7a1c94e4ec9d77d
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.
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 bf64409..8d94965 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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]