13
0

Fix clipping for scroll groups an offset bbox.

This commit is contained in:
David Robillard 2015-01-16 18:26:54 -05:00
parent 05a612b563
commit e48ff6b6a0

View File

@ -52,7 +52,10 @@ ScrollGroup::render (Rect const & area, Cairo::RefPtr<Cairo::Context> context) c
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.y1 = min (_position.y + _canvas->height(), self.y1);