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:
Robin Gareus 2022-07-06 20:04:14 +02:00
parent 6678cd74f4
commit 87d17f6624
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -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,