summaryrefslogtreecommitdiff
path: root/libs/canvas/line.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2013-04-18 15:47:10 -0400
committerPaul Davis <paul@linuxaudiosystems.com>2013-04-18 15:47:10 -0400
commit74126c48c0726e5491a160d2b0f04e406fc80231 (patch)
tree3ac00b82b86bb6d346d23735ce331059103bc2b8 /libs/canvas/line.cc
parentddd21c110c5d8f6e1214e85f75f8f26157d4bfa2 (diff)
expand bbox for Canvas::Line to get rid of artifacts caused when moving them around, as is done for Rectangle and others
Diffstat (limited to 'libs/canvas/line.cc')
-rw-r--r--libs/canvas/line.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/canvas/line.cc b/libs/canvas/line.cc
index c409f48c7d..7c5852f4b2 100644
--- a/libs/canvas/line.cc
+++ b/libs/canvas/line.cc
@@ -46,7 +46,7 @@ Line::compute_bounding_box () const
bbox.x1 = max (_points[0].x, _points[1].x);
bbox.y1 = max (_points[0].y, _points[1].y);
- bbox = bbox.expand (_outline_width / 2);
+ bbox = bbox.expand (0.5 + (_outline_width / 2));
_bounding_box = bbox;
_bounding_box_dirty = false;