From ec17b5388f4c0f1786d069481a2fc6f5bbf33f3b Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 8 Jan 2015 18:24:27 -0500 Subject: [PATCH] Fix bounding box of rectangles with wide outlines. --- libs/canvas/rectangle.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.30.2