diff --git a/packages/mindplot/src/components/commands/MoveControlPointCommand.ts b/packages/mindplot/src/components/commands/MoveControlPointCommand.ts index cf907c91..48679c75 100644 --- a/packages/mindplot/src/components/commands/MoveControlPointCommand.ts +++ b/packages/mindplot/src/components/commands/MoveControlPointCommand.ts @@ -46,9 +46,10 @@ class MoveControlPointCommand extends Command { const model = relationship.getModel(); this._oldCtrPoint = PivotType.Start === ctrIndex ? model.getSrcCtrlPoint() : model.getDestCtrlPoint(); + this._oldCtrPoint = { ...this._oldCtrPoint }; // New relationship ... - this._newCtrPoint = controlPoints.getControlPointPosition(ctrIndex); + this._newCtrPoint = { ...controlPoints.getControlPointPosition(ctrIndex) }; } execute() {