13
0

Fix bounding box of rectangles with wide outlines.

This commit is contained in:
David Robillard 2015-01-08 18:24:27 -05:00
parent f7e3d1be2c
commit ec17b5388f

View File

@ -147,7 +147,7 @@ Rectangle::compute_bounding_box () const
{
if (!_rect.empty()) {
Rect r = _rect.fix ();
_bounding_box = r;
_bounding_box = r.expand (_outline_width + 0.5);
}
_bounding_box_dirty = false;