mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-16 19:56:31 +01:00
Fix clipping for scroll groups an offset bbox.
This commit is contained in:
parent
05a612b563
commit
e48ff6b6a0
1 changed files with 4 additions and 1 deletions
|
|
@ -52,7 +52,10 @@ ScrollGroup::render (Rect const & area, Cairo::RefPtr<Cairo::Context> context) c
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
Rect self (_position.x, _position.y, _position.x + r.get().width(), _position.y + r.get().height());
|
Rect self (_position.x + r.get().x0,
|
||||||
|
_position.y + r.get().y0,
|
||||||
|
_position.x + r.get().x1,
|
||||||
|
_position.y + r.get().y1);
|
||||||
|
|
||||||
self.x1 = min (_position.x + _canvas->width(), self.x1);
|
self.x1 = min (_position.x + _canvas->width(), self.x1);
|
||||||
self.y1 = min (_position.y + _canvas->height(), self.y1);
|
self.y1 = min (_position.y + _canvas->height(), self.y1);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue