[gimp] app: more minor cage tool cleanup



commit 09aae9a91956afe9eea0a35590b52e9c2ce02620
Author: Michael Natterer <mitch gimp org>
Date:   Fri Nov 5 09:49:03 2010 +0100

    app: more minor cage tool cleanup

 app/tools/gimpcagetool.c |    9 ++++-----
 1 files changed, 4 insertions(+), 5 deletions(-)
---
diff --git a/app/tools/gimpcagetool.c b/app/tools/gimpcagetool.c
index 41a542c..b41657d 100644
--- a/app/tools/gimpcagetool.c
+++ b/app/tools/gimpcagetool.c
@@ -215,10 +215,9 @@ static void
 gimp_cage_tool_start (GimpCageTool *ct,
                       GimpDisplay  *display)
 {
-  GimpTool     *tool      = GIMP_TOOL (ct);
-  GimpDrawTool *draw_tool = GIMP_DRAW_TOOL (tool);
-  GimpImage    *image     = gimp_display_get_image (display);
-  GimpDrawable *drawable  = gimp_image_get_active_drawable (image);
+  GimpTool     *tool     = GIMP_TOOL (ct);
+  GimpImage    *image    = gimp_display_get_image (display);
+  GimpDrawable *drawable = gimp_image_get_active_drawable (image);
   gint          off_x;
   gint          off_y;
 
@@ -251,7 +250,7 @@ gimp_cage_tool_start (GimpCageTool *ct,
   ct->config->offset_x = off_x;
   ct->config->offset_y = off_y;
 
-  gimp_draw_tool_start (draw_tool, display);
+  gimp_draw_tool_start (GIMP_DRAW_TOOL (ct), display);
 }
 
 static gboolean



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