diff options
Diffstat (limited to 'io_curve_svg')
-rw-r--r-- | io_curve_svg/import_svg.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/io_curve_svg/import_svg.py b/io_curve_svg/import_svg.py index 19cd5d5d..7d34ab63 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() |