Commit 77baf5cd authored by RazrFalcon's avatar RazrFalcon

Build fixed.

parent 78683370
......@@ -59,6 +59,7 @@ fn main() {
visibility: usvg::Visibility::Visible,
fill,
stroke: None,
marker: Box::new(usvg::PathMarker::default()),
segments: utils::rect_to_path(Rect::new(20.0, 20.0, 160.0, 160.0)),
}));
......
......@@ -54,6 +54,7 @@ fn main() {
visibility: usvg::Visibility::Visible,
fill: None,
stroke: stroke.clone(),
marker: Box::new(usvg::PathMarker::default()),
segments: utils::rect_to_path(bbox),
}));
}
......
......@@ -580,3 +580,14 @@ pub struct PathMarker {
/// So we have to store it separately.
pub stroke: Option<StrokeWidth>,
}
impl Default for PathMarker {
fn default() -> Self {
PathMarker {
start: None,
mid: None,
end: None,
stroke: None,
}
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment