Check for the occurrence of 'radius' rather than 'center' when deciding to read a center / radius pair for ellipses.

This commit is contained in:
Jürg Lehni 2013-10-29 18:53:55 +01:00
parent c3aed5277d
commit 9d60662a28
2 changed files with 2 additions and 2 deletions

View file

@ -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 {

View file

@ -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 {