[gimp/soc-2010-cage-2] GimpCageTool: don't allow to add handle after closing the cage



commit 67c1981a40c1dc301e4660ec48654c5693bba432
Author: Michael Muré <batolettre gmail com>
Date:   Tue Aug 10 00:58:24 2010 +0200

    GimpCageTool: don't allow to add handle after closing the cage

 app/tools/gimpcagetool.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/app/tools/gimpcagetool.c b/app/tools/gimpcagetool.c
index 5350a7e..cccac4e 100644
--- a/app/tools/gimpcagetool.c
+++ b/app/tools/gimpcagetool.c
@@ -261,7 +261,7 @@ gimp_cage_tool_button_press (GimpTool              *tool,
                                                        HANDLE_SIZE);
   }
   
-  if (ct->handle_moved < 0)
+  if (ct->handle_moved < 0 && !ct->cage_complete)
   {
     gimp_cage_config_add_cage_point (config,
                                     coords->x,



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]