From 573544b41bfb8c20d927be05ba5c1e8f6264b113 Mon Sep 17 00:00:00 2001 From: cuixiping Date: Wed, 13 Mar 2019 11:15:49 +0800 Subject: [PATCH] fix SVG-Edit/svgedit#268 error on dragging control point of arc --- editor/path.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/editor/path.js b/editor/path.js index 12912c06..adfb01c5 100644 --- a/editor/path.js +++ b/editor/path.js @@ -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;