mirror of
https://github.com/DarthAffe/RGB.NET.git
synced 2025-12-13 01:58:30 +00:00
Fixed IsEmpty on Rectangle
This commit is contained in:
parent
a020cb0784
commit
d50deaf686
@ -53,8 +53,9 @@ namespace RGB.NET.Core
|
||||
|
||||
/// <summary>
|
||||
/// Gets a bool indicating if both, the width and the height of the rectangle is greater than zero.
|
||||
/// <c>True</c> if the rectangle has a width or a height of zero; otherwise, <c>false</c>.
|
||||
/// </summary>
|
||||
public bool IsEmpty => (Size.Width > DoubleExtensions.TOLERANCE) && (Size.Height > DoubleExtensions.TOLERANCE);
|
||||
public bool IsEmpty => (Size.Width <= DoubleExtensions.TOLERANCE) || (Size.Height <= DoubleExtensions.TOLERANCE);
|
||||
|
||||
#endregion
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user