Browse Source

Fix Rect.Equals.

pull/39/head
Steven Kirk 12 years ago
parent
commit
43e645de6a
  1. 6
      Perspex.SceneGraph/Rect.cs

6
Perspex.SceneGraph/Rect.cs

@ -322,11 +322,7 @@ namespace Perspex
{
if (obj is Rect)
{
var other = (Rect)obj;
return this.X == other.X &&
this.X == other.X &&
this.Width == other.Width &&
this.Height == other.Height;
return this == (Rect)obj;
}
return false;

Loading…
Cancel
Save