[ios] fix crash on empty path d attribute. fixes #901

This commit is contained in:
Mikael Sand
2019-01-15 17:17:16 +01:00
parent 43e6f714d5
commit a873f3a687
+3 -1
View File
@@ -324,7 +324,9 @@ UInt32 saturate(CGFloat value) {
CGPoint center = CGPointApplyAffineTransform(mid, matrix);
self.bounds = bounds;
self.center = center;
if (!isnan(center.x) && !isnan(center.y)) {
self.center = center;
}
self.frame = clientRect;
CGPathDrawingMode mode = kCGPathStroke;