fixing text_svg
This commit is contained in:
parent
bf6add5c67
commit
049e5bd7cc
3 changed files with 30 additions and 28 deletions
|
@ -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()
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue