[gimp] app: need to actually set the extents of the pen, not only calculate them



commit 0b4bb5175040357b1ebdfa639e0a2bf55758d6a2
Author: Michael Natterer <mitch gimp org>
Date:   Sun Oct 3 02:31:54 2010 +0200

    app: need to actually set the extents of the pen, not only calculate them

 app/display/gimpcanvaspen.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/app/display/gimpcanvaspen.c b/app/display/gimpcanvaspen.c
index d77abaa..4d5e9e5 100644
--- a/app/display/gimpcanvaspen.c
+++ b/app/display/gimpcanvaspen.c
@@ -178,6 +178,8 @@ gimp_canvas_pen_get_extents (GimpCanvasItem   *item,
       rectangle.y      -= ceil (private->width / 2.0);
       rectangle.width  += private->width + 1;
       rectangle.height += private->width + 1;
+
+      gdk_region_union_with_rect (region, &rectangle);
     }
 
   return region;



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