mirror of
https://github.com/zoriya/react-native-svg.git
synced 2026-06-01 22:25:12 +00:00
[ios] fix crash on empty path d attribute. fixes #901
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user