ignore symbols in svg import
This commit is contained in:
parent
ac395b674e
commit
9582e8013d
1 changed files with 4 additions and 0 deletions
|
@ -161,6 +161,10 @@ class Command(BaseCommand):
|
||||||
for clippath in element.findall('./svg:clipPath', namespaces):
|
for clippath in element.findall('./svg:clipPath', namespaces):
|
||||||
element.remove(clippath)
|
element.remove(clippath)
|
||||||
|
|
||||||
|
for element in svg.findall('.//svg:symbol/..', namespaces):
|
||||||
|
for clippath in element.findall('./svg:symbol', namespaces):
|
||||||
|
element.remove(clippath)
|
||||||
|
|
||||||
if svg.findall('.//*[@transform]'):
|
if svg.findall('.//*[@transform]'):
|
||||||
raise CommandError(_('svg contains transform attributes. Use inkscape apply transforms.'))
|
raise CommandError(_('svg contains transform attributes. Use inkscape apply transforms.'))
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue