Fixed issue with beziers

This commit is contained in:
Devine Lu Linvega
2017-11-05 17:58:53 +13:00
parent 0a617dbd02
commit c352cf2575
3 changed files with 19 additions and 10 deletions

View File

@@ -13,11 +13,15 @@ function Path_Arc(from,to,orientation,end)
html += "M"+this.from+" ";
}
else if(prev){
if(prev.end && !prev.end.is_equal(this.from)){
html += "M"+this.from+" ";
if(prev.end){
if(!prev.end.is_equal(this.from)){
html += "M"+this.from+" ";
}
}
else if(prev.to && !prev.to.is_equal(this.from)){
html += "M"+this.from+" ";
else if(prev.to){
if(!prev.to.is_equal(this.from)){
html += "M"+this.from+" ";
}
}
}