13
0

expand bbox for Canvas::Line to get rid of artifacts caused when moving them around, as is done for Rectangle and others

This commit is contained in:
Paul Davis 2013-04-18 15:47:10 -04:00
parent ddd21c110c
commit 74126c48c0

View File

@ -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;