Prevent rendering outside of canvas scroll groups
This fixes automation lanes bleeding into the ruler area. The bounding box of all items in the main canvas group starts at -0.5, and the cursor-scroll-group at -1.5. This is calculated to include line-width, and outlines outside the item(s). A scroll-group however must not extend its render area to render those.
This commit is contained in:
parent
6678cd74f4
commit
87d17f6624
@ -53,6 +53,9 @@ ScrollGroup::render (Rect const & area, Cairo::RefPtr<Cairo::Context> context) c
|
||||
return;
|
||||
}
|
||||
|
||||
r.x0 = max (r.x0, 0.);
|
||||
r.y0 = max (r.y0, 0.);
|
||||
|
||||
Rect self (_position.x + r.x0,
|
||||
_position.y + r.y0,
|
||||
_position.x + r.x1,
|
||||
|
Loading…
Reference in New Issue
Block a user