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