[gimp] app: fix off-by-one x2, y2 in gimp_rectangle_tool_draw_guides()



commit 3e51484b188d5a9a42c730bd7162b270a81f064f
Author: Michael Natterer <mitch gimp org>
Date:   Tue May 17 23:18:19 2011 +0200

    app: fix off-by-one x2,y2 in gimp_rectangle_tool_draw_guides()
    
    the 1.0 was subtracted explicitly, I have no clue why but the reason
    for it is obviously gone.

 app/tools/gimprectangletool.c |    8 +++-----
 1 files changed, 3 insertions(+), 5 deletions(-)
---
diff --git a/app/tools/gimprectangletool.c b/app/tools/gimprectangletool.c
index efb0357..5bf67df 100644
--- a/app/tools/gimprectangletool.c
+++ b/app/tools/gimprectangletool.c
@@ -1859,14 +1859,12 @@ gimp_rectangle_tool_draw (GimpDrawTool    *draw_tool,
 static void
 gimp_rectangle_tool_draw_guides (GimpDrawTool *draw_tool)
 {
-  GimpTool       *tool = GIMP_TOOL (draw_tool);
-  gdouble         x1, y1;
-  gdouble         x2, y2;
+  GimpTool *tool = GIMP_TOOL (draw_tool);
+  gdouble   x1, y1;
+  gdouble   x2, y2;
 
   gimp_rectangle_tool_get_public_rect (GIMP_RECTANGLE_TOOL (draw_tool),
                                        &x1, &y1, &x2, &y2);
-  x2 -= 1.0;
-  y2 -= 1.0;
 
   switch (GIMP_RECTANGLE_TOOL_GET_PRIVATE (tool)->guide)
     {



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