diff --git a/io_curve_svg/import_svg.py b/io_curve_svg/import_svg.py index 19cd5d5d64ff5b209ed262ba73261b1fbbb4e9f2..7d34ab633c678120e2e1b0614e3e32c6a64424c2 100644 --- a/io_curve_svg/import_svg.py +++ b/io_curve_svg/import_svg.py @@ -323,7 +323,7 @@ def SVGParseStyles(node, context): return styles if styles['useFill'] is None: - fill = self._node.getAttribute('fill') + fill = node.getAttribute('fill') if fill: fill = fill.lower() if fill == 'none': @@ -354,7 +354,7 @@ class SVGPathData: """ # Convert to easy-to-parse format - d = d.replace(',', ' ') + d = d.replace(',', ' ').replace('-', ' -') d = re.sub('([A-z])', ' \\1 ', d) self._data = d.split()