diff options
Diffstat (limited to 'io_curve_svg')
-rw-r--r-- | io_curve_svg/import_svg.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/io_curve_svg/import_svg.py b/io_curve_svg/import_svg.py index 56ca68a6..6904e8bc 100644 --- a/io_curve_svg/import_svg.py +++ b/io_curve_svg/import_svg.py @@ -960,9 +960,9 @@ class SVGGeometry: if hasattr(node, 'getAttribute'): defs = context['defines'] - id = node.getAttribute('id') - if id and defs.get('#' + id) is None: - defs['#' + id] = self + attr_id = node.getAttribute('id') + if attr_id and defs.get('#' + attr_id) is None: + defs['#' + attr_id] = self className = node.getAttribute('class') if className and defs.get(className) is None: |