Skip to content
Snippets Groups Projects
Commit ec92cf72 authored by Sergey Sharybin's avatar Sergey Sharybin
Browse files

SVG importer:

- Fixed exception caused by spaces after last semicolon in style
- Ignore svg namespage in tag names when detecting geometry class
parent c4d29029
No related branches found
No related tags found
No related merge requests found
......@@ -383,6 +383,9 @@ def SVGParseStyles(node, context):
for elem in elems:
s = elem.split(':')
if len(s) != 2:
continue
name = s[0].strip().lower()
val = s[1].strip()
......@@ -1703,6 +1706,10 @@ svgGeometryClasses = {
def parseAbstractNode(node, context):
name = node.tagName.lower()
if name.startswith('svg:'):
name = name[4:]
geomClass = svgGeometryClasses.get(name)
if geomClass is not None:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment