fix issue in ctx.closePath()

prevents path from starting with ‘Z’ and throwing an error
This commit is contained in:
Michael Deal 2016-07-28 01:07:38 -07:00
parent 6983b3d782
commit 0b16b0c346

View File

@ -585,7 +585,9 @@
* Closes the current path
*/
ctx.prototype.closePath = function(){
this.__addPathCommand("Z");
if (this.__currentDefaultPath) {
this.__addPathCommand("Z");
}
};
/**