mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-10-10 02:40:59 +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:
1 parent
1aa57ca11b
commit
a0b9efe1fd
1 file changed
+3
-2
@@ -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