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
|
* Closes the current path
|
||||||
*/
|
*/
|
||||||
ctx.prototype.closePath = function(){
|
ctx.prototype.closePath = function(){
|
||||||
this.__addPathCommand("Z");
|
if (this.__currentDefaultPath) {
|
||||||
|
this.__addPathCommand("Z");
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user