diff options
author | 2023-09-18 13:58:55 +0200 | |
---|---|---|
committer | 2023-09-18 13:58:55 +0200 | |
commit | 61ef8f3249218b301d434d04c483ba70562c1df4 (patch) | |
tree | 6cc31cdd7a3292eab843fa8b5f11cc7ba186eef9 /graphics/src | |
parent | b5466f41ca33452fb0d4e8470856c027d3b26e39 (diff) | |
download | iced-61ef8f3249218b301d434d04c483ba70562c1df4.tar.gz iced-61ef8f3249218b301d434d04c483ba70562c1df4.tar.bz2 iced-61ef8f3249218b301d434d04c483ba70562c1df4.zip |
Update `version` properly when `FontSystem` changes in `text::editor`
Diffstat (limited to 'graphics/src')
-rw-r--r-- | graphics/src/text/editor.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/graphics/src/text/editor.rs b/graphics/src/text/editor.rs index de1b998b..4673fce3 100644 --- a/graphics/src/text/editor.rs +++ b/graphics/src/text/editor.rs @@ -472,6 +472,9 @@ impl editor::Editor for Editor { for line in internal.editor.buffer_mut().lines.iter_mut() { line.reset(); } + + internal.version = font_system.version(); + internal.topmost_line_changed = Some(0); } if new_font != internal.font { |