diff --git a/canvas2svg.js b/canvas2svg.js index 03dc392..7599402 100644 --- a/canvas2svg.js +++ b/canvas2svg.js @@ -585,7 +585,9 @@ * Closes the current path */ ctx.prototype.closePath = function(){ - this.__addPathCommand("Z"); + if (this.__currentDefaultPath) { + this.__addPathCommand("Z"); + } }; /**