mirror of
https://github.com/zoriya/react-native-svg.git
synced 2026-06-03 07:06:04 +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);
|
CGPoint center = CGPointApplyAffineTransform(mid, matrix);
|
||||||
|
|
||||||
self.bounds = bounds;
|
self.bounds = bounds;
|
||||||
self.center = center;
|
if (!isnan(center.x) && !isnan(center.y)) {
|
||||||
|
self.center = center;
|
||||||
|
}
|
||||||
self.frame = clientRect;
|
self.frame = clientRect;
|
||||||
|
|
||||||
CGPathDrawingMode mode = kCGPathStroke;
|
CGPathDrawingMode mode = kCGPathStroke;
|
||||||
|
|||||||
Reference in New Issue
Block a user