diff --git a/src/path/Curve.js b/src/path/Curve.js index 097cd473..984ce440 100644 --- a/src/path/Curve.js +++ b/src/path/Curve.js @@ -501,9 +501,8 @@ var Curve = Base.extend(/** @lends Curve# */{ res = this.getNext(); } else { // otherwise create it from the result of split - var end = segment2; - segment2 = segment; - res = new Curve(segment, end); + this._segment2 = segment; + res = new Curve(segment, segment2); } } return res;