Skip to content

Commit

Permalink
Bug 708519 - Fix using Backspace to delete a closed cage tool's points.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jehan committed Sep 21, 2013
1 parent 5e331e1 commit 2294b8d
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions app/tools/gimpcagetool.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 2294b8d

Please sign in to comment.