fix SVG-Edit/svgedit#268 error on dragging control point of arc

This commit is contained in:
cuixiping
2019-03-13 11:15:49 +08:00
parent 85d6767578
commit 573544b41b

View File

@@ -785,7 +785,7 @@ export class Segment {
]
: [item.x += dx, item.y += dy];
replacePathSeg(this.type, this.index, curPts);
replacePathSeg(this.type, this.index, this.type === 10 ? ptObjToArr(this.type, item) : curPts); //type 10 means ARC
if (this.next && this.next.ctrlpts) {
const next = this.next.item;