[gimp] app: fix canvas arc extents



commit 9c7cd6d41c6942061d2f6a75e532c5b2b6d1dd0a
Author: Michael Natterer <mitch gimp org>
Date:   Fri Sep 24 18:54:50 2010 +0200

    app: fix canvas arc extents

 app/display/gimpcanvasarc.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/app/display/gimpcanvasarc.c b/app/display/gimpcanvasarc.c
index 9623f08..2c7a5cd 100644
--- a/app/display/gimpcanvasarc.c
+++ b/app/display/gimpcanvasarc.c
@@ -298,8 +298,8 @@ gimp_canvas_arc_get_extents (GimpCanvasItem   *item,
 
   rectangle.x      = floor (center_x - radius_x - 1.5);
   rectangle.y      = floor (center_y - radius_y - 1.5);
-  rectangle.width  = ceil (rectangle.x + 2 * radius_x + 3.0);
-  rectangle.height = ceil (rectangle.y + 2 * radius_y + 3.0);
+  rectangle.width  = ceil (2 * radius_x + 3.0);
+  rectangle.height = ceil (2 * radius_y + 3.0);
 
   return gdk_region_rectangle (&rectangle);
 }



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