Merge pull request #1411 from tarkah/fix/canvas-with-clip-text

Don't double translate text clip inside canvas
This commit is contained in:
Héctor Ramón 2022-08-16 10:53:03 +02:00 committed by GitHub
commit 4425839aa4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -280,7 +280,7 @@ impl Frame {
Primitive::Translate {
translation,
content: Box::new(Primitive::Clip {
bounds: region,
bounds: Rectangle::with_size(region.size()),
content: Box::new(Primitive::Group {
primitives: text,
}),