diff options
-rw-r--r-- | winit/src/program/window_manager.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/winit/src/program/window_manager.rs b/winit/src/program/window_manager.rs index 27306439..139d787a 100644 --- a/winit/src/program/window_manager.rs +++ b/winit/src/program/window_manager.rs @@ -343,6 +343,10 @@ where shaping: text::Shaping::Advanced, wrapping: text::Wrapping::None, }); + + self.spans.clear(); + self.spans + .extend(spans.into_iter().map(text::Span::to_static)); } } |