13
0

canvas: fix bounding box of a LineSet (lower edge was not lower enough)

This commit is contained in:
Paul Davis 2023-09-25 19:51:33 -06:00
parent 6f802015d7
commit bc78694a1a

View File

@ -58,7 +58,7 @@ LineSet::compute_bounding_box () const
if (_orientation == Horizontal) {
double y0 = _lines.front().pos - (_lines.front().width/2.0);
double y1 = _lines.back().pos - (_lines.back().width/2.0);
double y1 = _lines.back().pos + (_lines.back().width/2.0);
if (fmod (_lines.front().width, 2.)) {
y0 -= _lines.front().width * 0.5;