Skip to content

Commit

Permalink
Merge pull request #196 from piaoger/patch-1
Browse files Browse the repository at this point in the history
Fix sample file path for svg example
  • Loading branch information
hecrj authored Feb 20, 2020
2 parents 17271ea + 23fe47b commit 9758c12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/svg/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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),
);
Expand Down

0 comments on commit 9758c12

Please sign in to comment.