From 60dca8c2e8378ccb67c562741f2b7f402303775c Mon Sep 17 00:00:00 2001 From: Jonathan Puckey Date: Tue, 12 Apr 2011 14:35:42 +0200 Subject: [PATCH] Path#cubicCurveTo: convert arguments to points first. --- src/path/Path.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/path/Path.js b/src/path/Path.js index 925caabe..29841426 100644 --- a/src/path/Path.js +++ b/src/path/Path.js @@ -508,6 +508,9 @@ var Path = this.Path = PathItem.extend({ * to point. */ cubicCurveTo: function(handle1, handle2, to) { + handle1 = Point.read(arguments, 0, 1); + handle2 = Point.read(arguments, 1, 1); + to = Point.read(arguments, 2, 1); // First modify the current segment: var current = getCurrentSegment(this); // Convert to relative values: