From c339ffca35ac58b375f5c15f30e2af4d31c34f4a Mon Sep 17 00:00:00 2001 From: Jonathan Puckey Date: Thu, 1 Mar 2012 23:25:00 +0100 Subject: [PATCH] Close closed paths when drawing using Context#closePath(). Fixes #72 --- src/path/Path.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/path/Path.js b/src/path/Path.js index fa4c0444..52da17f2 100644 --- a/src/path/Path.js +++ b/src/path/Path.js @@ -1451,6 +1451,9 @@ var Path = this.Path = PathItem.extend(/** @lends Path# */{ drawSegments(ctx, this); } + if (this._closed) + ctx.closePath(); + if (this._clipMask) { ctx.clip(); } else if (!param.compound && (fillColor || strokeColor)) {