mirror of
https://github.com/exyte/Macaw.git
synced 2024-09-11 05:05:23 +03:00
Fix issue with nested "use" tags, mentioned in #495
This commit is contained in:
parent
0f7b63457c
commit
9d031b85ac
@ -967,11 +967,13 @@ open class SVGParser {
|
||||
if let referenceNode = self.defNodes[id] {
|
||||
if usedReferenced[id] == nil {
|
||||
usedReferenced[id] = id
|
||||
defer {
|
||||
usedReferenced.removeValue(forKey: id)
|
||||
}
|
||||
if let node = try parseNode(referenceNode, groupStyle: groupStyle) {
|
||||
node.place = place.move(dx: getDoubleValue(element, attribute: "x") ?? 0, dy: getDoubleValue(element, attribute: "y") ?? 0)
|
||||
return node
|
||||
}
|
||||
usedReferenced.removeValue(forKey: id)
|
||||
}
|
||||
}
|
||||
return .none
|
||||
|
Loading…
Reference in New Issue
Block a user