1
1
mirror of https://github.com/exyte/Macaw.git synced 2024-11-11 01:42:35 +03:00

Fix for ellipse locus converting to cgPath

This commit is contained in:
Anton Marunko 2018-06-13 17:58:39 +07:00
parent 27d07e17a9
commit cdc7d361b2

View File

@ -152,7 +152,10 @@ class RenderUtils {
let path = toBezierPath(transformedLocus.locus) let path = toBezierPath(transformedLocus.locus)
path.apply(transformedLocus.transform.toCG()) path.apply(transformedLocus.transform.toCG())
return path return path
} else if let ellipse = locus as? Ellipse {
return MBezierPath(ovalIn: ellipse.bounds().toCG())
} }
fatalError("Unsupported locus: \(locus)") fatalError("Unsupported locus: \(locus)")
} }