Account for transformation in Text::visible_bounds
This commit is contained in:
parent
1e802e776c
commit
32cd456fb9
2 changed files with 7 additions and 5 deletions
|
|
@ -200,9 +200,7 @@ impl Layer {
|
|||
|text| {
|
||||
text.visible_bounds()
|
||||
.into_iter()
|
||||
.filter_map(|bounds| {
|
||||
bounds.intersection(&text_a.clip_bounds())
|
||||
})
|
||||
.map(|bounds| bounds * text_a.transformation())
|
||||
.collect()
|
||||
},
|
||||
|text_a, text_b| text_a == text_b,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue