Avoid holding borrow to editor while painting child elements
This commit is contained in:
parent
f2c63781f9
commit
3a8e9b5697
2 changed files with 648 additions and 670 deletions
|
@ -174,10 +174,7 @@ impl TextState {
|
|||
|
||||
let Some(lines) = text_system
|
||||
.shape_text(
|
||||
&text,
|
||||
font_size,
|
||||
&runs[..],
|
||||
wrap_width, // Wrap if we know the width.
|
||||
&text, font_size, &runs, wrap_width, // Wrap if we know the width.
|
||||
)
|
||||
.log_err()
|
||||
else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue