From cee3572460a044130600fd0270944bbdbc0f0322 Mon Sep 17 00:00:00 2001 From: grokys Date: Sat, 1 Feb 2014 21:19:47 +0100 Subject: [PATCH] Oops! --- Perspex/Rect.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Perspex/Rect.cs b/Perspex/Rect.cs index d8eec42eb2..b47904ae13 100644 --- a/Perspex/Rect.cs +++ b/Perspex/Rect.cs @@ -123,7 +123,7 @@ /// true if the point is in the bounds of the rectangle; otherwise false. public bool Contains(Point p) { - return p.X >= this.x && p.Y < this.x + this.width && + return p.X >= this.x && p.X < this.x + this.width && p.Y >= this.y && p.Y < this.y + this.height; }