[gimp] app: GimpPerspectiveCloneTool: don't start an already active draw tool



commit a4591aae11a0aee45e461e1ba9c5f617fe2f1f76
Author: Michael Natterer <mitch gimp org>
Date:   Sat Sep 3 10:14:52 2011 +0200

    app: GimpPerspectiveCloneTool: don't start an already active draw tool

 app/tools/gimpperspectiveclonetool.c |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/app/tools/gimpperspectiveclonetool.c b/app/tools/gimpperspectiveclonetool.c
index 5670cfa..d4eeef1 100644
--- a/app/tools/gimpperspectiveclonetool.c
+++ b/app/tools/gimpperspectiveclonetool.c
@@ -855,8 +855,11 @@ gimp_perspective_clone_tool_mode_notify (GimpPerspectiveCloneOptions *options,
                                          GIMP_TOOL_CURSOR_PERSPECTIVE);
 
       /*  start drawing the bounding box and handles...  */
-      if (tool->display)
-        gimp_draw_tool_start (GIMP_DRAW_TOOL (clone_tool), tool->display);
+      if (tool->display &&
+          ! gimp_draw_tool_is_active (GIMP_DRAW_TOOL (clone_tool)))
+        {
+          gimp_draw_tool_start (GIMP_DRAW_TOOL (clone_tool), tool->display);
+        }
     }
 
   gimp_draw_tool_resume (GIMP_DRAW_TOOL (clone_tool));



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