From 543609c0c62063dfacf52a1c6c28f967c01b5c04 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Wed, 16 Oct 2013 14:25:14 +0200 Subject: [PATCH] Have Path.Ellipse constructor support negative radius values correctly. --- src/path/Path.Constructors.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/path/Path.Constructors.js b/src/path/Path.Constructors.js index e948e639..6fff49a5 100644 --- a/src/path/Path.Constructors.js +++ b/src/path/Path.Constructors.js @@ -286,7 +286,7 @@ Path.inject({ statics: new function() { var center = Point.readNamed(arguments, 'center'), radius = Size.readNamed(arguments, 'radius'); rect = new Rectangle(center.subtract(radius), - radius.multiply(2)); + center.add(radius)); } else { rect = Rectangle.readNamed(arguments, 'rectangle'); }