diff --git a/src/path/CompoundPath.js b/src/path/CompoundPath.js index 9334d92d..8d6103d2 100644 --- a/src/path/CompoundPath.js +++ b/src/path/CompoundPath.js @@ -89,11 +89,9 @@ var CompoundPath = this.CompoundPath = PathItem.extend({ path.moveTo.apply(path, arguments); }, - moveBy: function() { - var point = arguments.length ? Point.read(arguments) : new Point(), - path = getCurrentPath(this), - current = path.segments[path.segments.length - 1]._point; - this.moveTo(current.add(point)); + moveBy: function(point) { + this.moveTo(getCurrentPath(this).getLastSegment()._point.add( + Point.read(arguments))); }, closePath: function() {