summaryrefslogtreecommitdiffstats
path: root/examples/svg
diff options
context:
space:
mode:
authorLibravatar Piaoger <piaoger@yahoo.com>2020-02-20 17:28:42 +0800
committerLibravatar GitHub <noreply@github.com>2020-02-20 17:28:42 +0800
commit23fe47bdcb5914224365387c04e8e5a9538e5783 (patch)
tree0fedd5a8f38a6f65a6ff1a01d5e52bfb8a872c36 /examples/svg
parent17271eae671a933a862dc85aa5b9956a7da70b28 (diff)
downloadiced-23fe47bdcb5914224365387c04e8e5a9538e5783.tar.gz
iced-23fe47bdcb5914224365387c04e8e5a9538e5783.tar.bz2
iced-23fe47bdcb5914224365387c04e8e5a9538e5783.zip
Fix sample file path for svg example
Sample tiger.svg is move to resources after directory restructuring. This change is to correct the path
Diffstat (limited to 'examples/svg')
-rw-r--r--examples/svg/src/main.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/svg/src/main.rs b/examples/svg/src/main.rs
index 57358e24..1fb80534 100644
--- a/examples/svg/src/main.rs
+++ b/examples/svg/src/main.rs
@@ -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),
);