[gimp/soc-2011-warp: 47/56] warptool: some quick cleaning



commit f0f3cbfdb2b3832f8e5ae6115abf8ce7f05cda69
Author: Michael Murà <batolettre gmail com>
Date:   Fri Jul 8 11:06:49 2011 +0200

    warptool: some quick cleaning

 app/tools/gimpwarptool.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/app/tools/gimpwarptool.c b/app/tools/gimpwarptool.c
index b2cc14c..d2ea5a5 100644
--- a/app/tools/gimpwarptool.c
+++ b/app/tools/gimpwarptool.c
@@ -360,11 +360,11 @@ gimp_warp_tool_button_press (GimpTool            *tool,
   gegl_path_append (wt->current_stroke,
                     'M', coords->x, coords->y);
 
+  gimp_warp_tool_add_op (wt);
+
   wt->stroke_timer = g_timeout_add (STROKE_PERIOD, gimp_warp_tool_stroke_timer, wt);
   wt->preview_timer = g_timeout_add (PREVIEW_PERIOD, gimp_warp_tool_preview_timer, wt);
 
-  gimp_warp_tool_add_op (wt);
-
   gimp_tool_control_activate (tool->control);
 }
 
@@ -386,7 +386,6 @@ gimp_warp_tool_button_release (GimpTool              *tool,
   g_source_remove (wt->preview_timer);
 
   printf ("%s\n", gegl_path_to_string (wt->current_stroke));
-  gimp_warp_tool_preview_timer (wt);
 
   if (release_type == GIMP_BUTTON_RELEASE_CANCEL)
     {
@@ -394,6 +393,7 @@ gimp_warp_tool_button_release (GimpTool              *tool,
     }
   else
     {
+      gimp_warp_tool_image_map_update (wt);
     }
 
   gimp_draw_tool_resume (GIMP_DRAW_TOOL (tool));



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