alter ArdourCanvas::Rect::expand() to not clamp to all-positive values because we now definitely have items that have negative coordinates.
This could have drastic consequences but I think the all-positive was a hack to fix a problem that was solved separately by means currently unknown.
This commit is contained in:
parent
621887cfaa
commit
52cfbb45e1
@ -95,8 +95,8 @@ Rect
|
|||||||
Rect::expand (Distance amount) const
|
Rect::expand (Distance amount) const
|
||||||
{
|
{
|
||||||
Rect r;
|
Rect r;
|
||||||
r.x0 = max (0.0, x0 - amount);
|
r.x0 = x0 - amount;
|
||||||
r.y0 = max (0.0, y0 - amount);
|
r.y0 = y0 - amount;
|
||||||
r.x1 = safe_add (x1, amount);
|
r.x1 = safe_add (x1, amount);
|
||||||
r.y1 = safe_add (y1, amount);
|
r.y1 = safe_add (y1, amount);
|
||||||
return r;
|
return r;
|
||||||
|
Loading…
Reference in New Issue
Block a user