canvas: fix bounding box of a LineSet (lower edge was not lower enough)
This commit is contained in:
parent
6f802015d7
commit
bc78694a1a
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user