fixing text_svg

This commit is contained in:
Chris Cochrun 2025-07-03 21:59:52 -05:00
parent bf6add5c67
commit 049e5bd7cc
3 changed files with 30 additions and 28 deletions

View file

@ -249,11 +249,11 @@ impl TextSvg {
self.fill, stroke, text);
// debug!(final_svg);
lazy(self.clone(), move |_s| Svg::new(Handle::from_memory(
Svg::new(Handle::from_memory(
Box::leak(<std::string::String as Clone>::clone(&final_svg).into_boxed_str()).as_bytes(),
))
.width(Length::Fill)
.height(Length::Fill))
.height(Length::Fill)
.into()
})).width(Length::Fill).height(Length::Fill).into()
}