diff --git a/AppKit/CoreGraphics/CGPath.j b/AppKit/CoreGraphics/CGPath.j index 0bf89f679..fb01d5c34 100644 --- a/AppKit/CoreGraphics/CGPath.j +++ b/AppKit/CoreGraphics/CGPath.j @@ -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);