Have Path.Ellipse constructor support negative radius values correctly.

This commit is contained in:
Jürg Lehni 2013-10-16 14:25:14 +02:00
parent c945bf7908
commit 543609c0c6

View file

@ -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');
}