Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
SVG path parser fix
  • Loading branch information
djphoenix committed May 13, 2015
1 parent 52acb03 commit 31040fd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pxSVG/pxSVGPath.m
Expand Up @@ -48,11 +48,11 @@ - (UIBezierPath*)bezierPathWithString:(NSString*)string
cmd = [NSString stringWithCharacters:&lastCmd length:1];
} else {
NSLog(@"Unknown character: %@",[string substringWithRange:(NSRange){scanner.scanLocation,1}]);
break;
}
break;
}
lastCmd = [cmd characterAtIndex:0];
switch ([cmd characterAtIndex:0]) {
switch (lastCmd) {
case 'M':
[bp moveToPoint:p = [scanner scanCGPoint]];
break;
Expand Down

0 comments on commit 31040fd

Please sign in to comment.