From ecbd52cdf7fa9756d7cd7bfba80753e2f3b3210a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Thu, 3 Mar 2011 13:10:29 +0000 Subject: [PATCH] Fix Path.Line() constructor with 4 arguments. --- src/path/Path.Constructors.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/path/Path.Constructors.js b/src/path/Path.Constructors.js index 2b11b23a..a8a9b186 100644 --- a/src/path/Path.Constructors.js +++ b/src/path/Path.Constructors.js @@ -15,8 +15,8 @@ Path.inject({ statics: new function() { path._add(new Segment(arguments[0])); path._add(new Segment(arguments[1])); } else if (arguments.length == 4) { - path._add(Segment.read(arguments[0], arguments[1])); - path._add(Segment.read(arguments[2], arguments[3])); + path._add(new Segment(arguments[0], arguments[1])); + path._add(new Segment(arguments[2], arguments[3])); } return path; },