From e141953d35397bc7cd96c5309bcfc8cc4249001e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20Mur=C3=A9?= Date: Thu, 22 Jul 2010 10:38:12 +0200 Subject: [PATCH] gimpcagetool: the cage can be closed only if the number of point is 3 or more --- app/tools/gimpcagetool.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/tools/gimpcagetool.c b/app/tools/gimpcagetool.c index 0cc49df67a..e3aaf2ccfe 100644 --- a/app/tools/gimpcagetool.c +++ b/app/tools/gimpcagetool.c @@ -259,7 +259,7 @@ gimp_cage_tool_button_press (GimpTool *tool, } // user is clicking on the first handle, we close the cage and switch to deform mode - if (ct->handle_moved == 0) + if (ct->handle_moved == 0 && cage->cage_vertice_number > 2) { ct->cage_complete = TRUE; gimp_cage_tool_switch_to_deform (ct); @@ -557,5 +557,7 @@ gimp_cage_tool_process (GimpCageTool *ct, gimp_drawable_apply_operation (drawable, progress, _("Cage transform"), node, TRUE); g_object_unref (node); + + // TODO: flush } }