fix issue in ctx.closePath()
prevents path from starting with ‘Z’ and throwing an error
This commit is contained in:
parent
6983b3d782
commit
0b16b0c346
@ -585,7 +585,9 @@
|
||||
* Closes the current path
|
||||
*/
|
||||
ctx.prototype.closePath = function(){
|
||||
if (this.__currentDefaultPath) {
|
||||
this.__addPathCommand("Z");
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user