Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
f3dm76 committed Feb 11, 2019
1 parent 9d6c6eb commit e846d1d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Source/svg/SVGParser.swift
Original file line number Diff line number Diff line change
Expand Up @@ -644,8 +644,9 @@ open class SVGParser {
return Pattern(content: pattern.content, bounds: pattern.bounds.applying(tranform), userSpace: true)
}
if pattern.userSpace == true && pattern.contentUserSpace == false {
BoundsUtils.applyTransformToNodeInRespectiveCoords(respectiveNode: pattern.content, absoluteLocus: locus!)
return Pattern(content: pattern.content, bounds: pattern.bounds, userSpace: pattern.userSpace)
if let patternNode = BoundsUtils.createNodeFromRespectiveCoords(respectiveNode: pattern.content, absoluteLocus: locus!) {
return Pattern(content: patternNode, bounds: pattern.bounds, userSpace: pattern.userSpace)
}
}
return Pattern(content: pattern.content, bounds: pattern.bounds, userSpace: true)
}
Expand Down

0 comments on commit e846d1d

Please sign in to comment.