diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2014-03-07 11:26:27 -0500 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2014-03-07 11:26:27 -0500 |
commit | 52cfbb45e1b832d25d7eb756aa06dff0cff58f31 (patch) | |
tree | a827c88024688986598aec1aa6a4b5e7cb0c462b /libs | |
parent | 621887cfaac4bef4b6849037c0d72f7e7b66fa03 (diff) |
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.
Diffstat (limited to 'libs')
-rw-r--r-- | libs/canvas/types.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/canvas/types.cc b/libs/canvas/types.cc index 9d8ed05622..7d7a495df5 100644 --- a/libs/canvas/types.cc +++ b/libs/canvas/types.cc @@ -95,8 +95,8 @@ Rect Rect::expand (Distance amount) const { Rect r; - r.x0 = max (0.0, x0 - amount); - r.y0 = max (0.0, y0 - amount); + r.x0 = x0 - amount; + r.y0 = y0 - amount; r.x1 = safe_add (x1, amount); r.y1 = safe_add (y1, amount); return r; |