Close closed paths when drawing using Context#closePath(). Fixes #72

This commit is contained in:
Jonathan Puckey 2012-03-01 23:25:00 +01:00
parent b75e75f586
commit c339ffca35

View file

@ -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)) {