mirror of
https://github.com/zoriya/react-native-svg.git
synced 2026-06-05 07:59:28 +00:00
fix crash when the text letter reaches the end of text-path
This commit is contained in:
@@ -106,7 +106,11 @@ static CGFloat Distance(CGPoint a, CGPoint b) {
|
||||
- (CGAffineTransform)transformAtDistance:(CGFloat)distance
|
||||
{
|
||||
if (_offset == 0) {
|
||||
[self setControlPoints];
|
||||
if (_bezierCurves.count == _bezierIndex) {
|
||||
return CGAffineTransformMakeScale(0, 0);
|
||||
} else {
|
||||
[self setControlPoints];
|
||||
}
|
||||
}
|
||||
|
||||
CGFloat offset = [self offsetAtDistance:distance - _lastX
|
||||
|
||||
Reference in New Issue
Block a user