From 9d60662a28fdeb94611cfddedec42197e55f54fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Tue, 29 Oct 2013 18:53:55 +0100 Subject: [PATCH] Check for the occurrence of 'radius' rather than 'center' when deciding to read a center / radius pair for ellipses. --- src/item/Shape.js | 2 +- src/path/Path.Constructors.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/item/Shape.js b/src/item/Shape.js index 711394e5..22d70f32 100644 --- a/src/item/Shape.js +++ b/src/item/Shape.js @@ -437,7 +437,7 @@ statics: new function() { Ellipse: function(/* rectangle */) { var center, radius; - if (Base.hasNamed(arguments, 'center')) { + if (Base.hasNamed(arguments, 'radius')) { center = Point.readNamed(arguments, 'center'); radius = Size.readNamed(arguments, 'radius'); } else { diff --git a/src/path/Path.Constructors.js b/src/path/Path.Constructors.js index 26a6092b..c20be35f 100644 --- a/src/path/Path.Constructors.js +++ b/src/path/Path.Constructors.js @@ -284,7 +284,7 @@ Path.inject({ statics: new function() { Ellipse: function(/* rectangle */) { var center, radius; - if (Base.hasNamed(arguments, 'center')) { + if (Base.hasNamed(arguments, 'radius')) { center = Point.readNamed(arguments, 'center'); radius = Size.readNamed(arguments, 'radius'); } else {