Stop stroking every path!!

This commit is contained in:
Patrick Walton 2018-12-21 21:04:48 -08:00
parent 5bac1b6517
commit e681a28da3
1 changed files with 1 additions and 1 deletions

View File

@ -324,7 +324,7 @@ impl Scene {
} }
fn push_svg_path(&mut self, value: &str, style: StyleId, name: String) { fn push_svg_path(&mut self, value: &str, style: StyleId, name: String) {
if self.get_style(style).stroke_width > 0.0 { if self.get_style(style).stroke_color.is_some() {
let computed_style = self.get_style(style); let computed_style = self.get_style(style);
let mut path_parser = PathParser::from(&*value); let mut path_parser = PathParser::from(&*value);
let path = SvgPathToPathEvents::new(&mut path_parser); let path = SvgPathToPathEvents::new(&mut path_parser);