[gimp] app: -1000 is a valid cursor position, use G_MINDOUBLE as "no cursor"



commit 9867cf62c331cb032424824324177cc739e7b9dd
Author: Michael Natterer <mitch gimp org>
Date:   Fri Nov 5 22:25:14 2010 +0100

    app: -1000 is a valid cursor position, use G_MINDOUBLE as "no cursor"

 app/tools/gimpcagetool.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/app/tools/gimpcagetool.c b/app/tools/gimpcagetool.c
index 3e2fc22..991041b 100644
--- a/app/tools/gimpcagetool.c
+++ b/app/tools/gimpcagetool.c
@@ -231,8 +231,8 @@ gimp_cage_tool_start (GimpCageTool *ct,
     }
 
   ct->config            = g_object_new (GIMP_TYPE_CAGE_CONFIG, NULL);
-  ct->cursor_position.x = -1000;
-  ct->cursor_position.y = -1000;
+  ct->cursor_position.x = G_MINDOUBLE;
+  ct->cursor_position.y = G_MINDOUBLE;
   ct->moving_handle     = -1;
   ct->cage_complete     = FALSE;
 
@@ -509,7 +509,7 @@ gimp_cage_tool_draw (GimpDrawTool *draw_tool)
 
   gimp_draw_tool_push_group (draw_tool, stroke_group);
 
-  if (! ct->cage_complete && ct->cursor_position.x != -1000)
+  if (! ct->cage_complete && ct->cursor_position.x != G_MINDOUBLE)
     {
       gimp_draw_tool_add_line (draw_tool,
                                vertices[n_vertices - 1].x + ct->config->offset_x,



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