mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-09-13 22:21:29 +00:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user