Fixed: CGPathMoveToPoint problem after a0115962.

Without this fix, CGPathMoveToPoint would not actually move to the point if there had been at least one previous CGPath command (a current path existed) but it was not a move to point command.

This fix ensures move to point is effective in all cases.

Fixes #1801.
This commit is contained in:
Alexander Ljungberg
2013-02-26 16:27:54 +00:00
parent 1aa57ca11b
commit a0b9efe1fd
+3 -2
View File
@@ -318,10 +318,11 @@ function CGPathMoveToPoint(aPath, aTransform, x, y)
{
previous.x = point.x;
previous.y = point.y;
return;
}
}
else
aPath.elements[aPath.count++] = { type:kCGPathElementMoveToPoint, x:point.x, y:point.y };
aPath.elements[aPath.count++] = { type:kCGPathElementMoveToPoint, x:point.x, y:point.y };
}
var KAPPA = 4.0 * ((SQRT2 - 1.0) / 3.0);