diff options
author | David Robillard <d@drobilla.net> | 2015-01-08 18:24:27 -0500 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2015-01-08 18:36:10 -0500 |
commit | ec17b5388f4c0f1786d069481a2fc6f5bbf33f3b (patch) | |
tree | 0a38d7a08c61c9e4287aeff5e0639363dec2df4e /libs/canvas/rectangle.cc | |
parent | f7e3d1be2c3cad8e3c7ac9910970c6bd87d3f536 (diff) |
Fix bounding box of rectangles with wide outlines.
Diffstat (limited to 'libs/canvas/rectangle.cc')
-rw-r--r-- | libs/canvas/rectangle.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/canvas/rectangle.cc b/libs/canvas/rectangle.cc index 0014958e90..364f6c5996 100644 --- a/libs/canvas/rectangle.cc +++ b/libs/canvas/rectangle.cc @@ -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; |