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:
parent
ddd21c110c
commit
74126c48c0
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user