mirror of https://github.com/GNOME/gimp.git
Bug 675825 - (cage) simply using cage transform tool makes gimp to crash.
Just check if there is enough handles before closing
This commit is contained in:
parent
1a624d4df4
commit
d9ba8b81da
|
@ -32,7 +32,6 @@
|
|||
|
||||
/*#define DEBUG_CAGE */
|
||||
|
||||
#define N_ITEMS_PER_ALLOC 10
|
||||
/* This DELTA is aimed to not have handle on exact pixel during computation,
|
||||
* to avoid particular case. It shouldn't be so usefull, but it's a double
|
||||
* safety. */
|
||||
|
|
|
@ -418,7 +418,7 @@ gimp_cage_tool_key_press (GimpTool *tool,
|
|||
case GDK_KEY_Return:
|
||||
case GDK_KEY_KP_Enter:
|
||||
case GDK_KEY_ISO_Enter:
|
||||
if (! ct->cage_complete)
|
||||
if (ct->cage_complete == FALSE && gimp_cage_config_get_n_points (ct->config) > 2)
|
||||
{
|
||||
g_object_set (gimp_tool_get_options (tool),
|
||||
"cage-mode", GIMP_CAGE_MODE_DEFORM,
|
||||
|
|
Loading…
Reference in New Issue