From b46d283dc4e42b5c77fb8ca07ef8d695c28a5711 Mon Sep 17 00:00:00 2001 From: Stephen Ierodiaconou Date: Wed, 1 Dec 2010 09:45:46 +0200 Subject: [PATCH] Closes 702: CPBezierPath stroke calls CGContextClosePath --- AppKit/CPBezierPath.j | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AppKit/CPBezierPath.j b/AppKit/CPBezierPath.j index 0517cf5ac..08d99c033 100644 --- a/AppKit/CPBezierPath.j +++ b/AppKit/CPBezierPath.j @@ -184,7 +184,6 @@ var DefaultLineWidth = 1.0; CGContextBeginPath(ctx); CGContextAddPath(ctx, _path); CGContextSetLineWidth(ctx, [self lineWidth]); - CGContextClosePath(ctx); CGContextStrokePath(ctx); } @@ -281,6 +280,7 @@ var DefaultLineWidth = 1.0; { CGPathAddPath(_path, nil, other._path); } + /*! Remove all path elements; clears path. */