Fix sample file path for svg example
Sample tiger.svg is move to resources after directory restructuring. This change is to correct the path
This commit is contained in:
parent
17271eae67
commit
23fe47bdcb
1 changed files with 1 additions and 1 deletions
|
|
@ -22,7 +22,7 @@ impl Sandbox for Tiger {
|
|||
|
||||
fn view(&mut self) -> Element<()> {
|
||||
let content = Column::new().padding(20).push(
|
||||
Svg::new(format!("{}/tiger.svg", env!("CARGO_MANIFEST_DIR")))
|
||||
Svg::new(format!("{}/resources/tiger.svg", env!("CARGO_MANIFEST_DIR")))
|
||||
.width(Length::Fill)
|
||||
.height(Length::Fill),
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue