[gimp] app: fix canvas line extents
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: fix canvas line extents
- Date: Sun, 19 Sep 2010 21:51:10 +0000 (UTC)
commit 5e5cacfd4cddd038a733d35df3ab5a1a024d6fbe
Author: Michael Natterer <mitch gimp org>
Date: Sun Sep 19 23:49:56 2010 +0200
app: fix canvas line extents
app/display/gimpcanvasline.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/app/display/gimpcanvasline.c b/app/display/gimpcanvasline.c
index 70018d5..78f79d1 100644
--- a/app/display/gimpcanvasline.c
+++ b/app/display/gimpcanvasline.c
@@ -223,10 +223,10 @@ gimp_canvas_line_draw (GimpCanvasItem *item,
cairo_line_to (cr, x2, y2);
_gimp_canvas_item_set_extents (item,
- MIN (x1, x2) - 0.5,
- MIN (y1, y2) - 0.5,
- ABS (x2 - x1) + 1.0,
- ABS (y2 - y1) + 1.0);
+ MIN (x1, x2) - 1.5,
+ MIN (y1, y2) - 1.5,
+ ABS (x2 - x1) + 3.0,
+ ABS (y2 - y1) + 3.0);
_gimp_canvas_item_stroke (item, shell, cr);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]