From 85a68c3f42381d7c3971df7a8f14d9114ee34a46 Mon Sep 17 00:00:00 2001 From: ibrierley Date: Wed, 15 Jul 2015 13:02:03 +0200 Subject: [PATCH] fixed indentation and extra vars --- editor/path.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/editor/path.js b/editor/path.js index ca8566c4..75ad3c7e 100644 --- a/editor/path.js +++ b/editor/path.js @@ -481,11 +481,11 @@ svgedit.path.Segment.prototype.move = function(dx, dy) { // fix for path tool dom breakage, amending item does bad things now, so we take a copy and use that. Can probably improve to just take a shallow copy of object var cloneItem = $.extend({}, item); - if(this.ctrlpts) { - var cur_pts = [cloneItem.x += dx, cloneItem.y += dy, + if (this.ctrlpts) { + cur_pts = [cloneItem.x += dx, cloneItem.y += dy, cloneItem.x1, cloneItem.y1, cloneItem.x2 += dx, cloneItem.y2 += dy]; } else { - var cur_pts = [cloneItem.x += dx, cloneItem.y += dy]; + cur_pts = [cloneItem.x += dx, cloneItem.y += dy]; } //fix