From d50deaf686a75cfcd23c28ac11b45242c05c7d38 Mon Sep 17 00:00:00 2001 From: Darth Affe Date: Sat, 5 Aug 2017 15:38:46 +0200 Subject: [PATCH] Fixed IsEmpty on Rectangle --- RGB.NET.Core/Positioning/Rectangle.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/RGB.NET.Core/Positioning/Rectangle.cs b/RGB.NET.Core/Positioning/Rectangle.cs index b15b069..b74cef8 100644 --- a/RGB.NET.Core/Positioning/Rectangle.cs +++ b/RGB.NET.Core/Positioning/Rectangle.cs @@ -53,8 +53,9 @@ namespace RGB.NET.Core /// /// Gets a bool indicating if both, the width and the height of the rectangle is greater than zero. + /// True if the rectangle has a width or a height of zero; otherwise, false. /// - public bool IsEmpty => (Size.Width > DoubleExtensions.TOLERANCE) && (Size.Height > DoubleExtensions.TOLERANCE); + public bool IsEmpty => (Size.Width <= DoubleExtensions.TOLERANCE) || (Size.Height <= DoubleExtensions.TOLERANCE); #endregion