From 2aeab450471cb80b59002da7da80faf251a0c4f4 Mon Sep 17 00:00:00 2001
From: asmrobot <asmrobot@hotmail.com>
Date: Mon, 25 Nov 2019 15:02:53 +0000
Subject: [PATCH] sigle computer
---
src/RichCreator.Utility/Structs/ZTRectangle.cs | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/RichCreator.Utility/Structs/ZTRectangle.cs b/src/RichCreator.Utility/Structs/ZTRectangle.cs
index eb41c38..74fee3c 100644
--- a/src/RichCreator.Utility/Structs/ZTRectangle.cs
+++ b/src/RichCreator.Utility/Structs/ZTRectangle.cs
@@ -60,7 +60,7 @@
public static bool operator ==(ZTRectangle a, ZTRectangle b)
{
- if (a.Start == b.Start && a.End == b.End)
+ if (a.Start .Equals( b.Start) && a.End.Equals( b.End))
{
return true;
}
@@ -69,7 +69,7 @@
public static bool operator !=(ZTRectangle a, ZTRectangle b)
{
- if (a.Start != b.Start || a.End != b.End)
+ if (!a.Start.Equals( b.Start) || !a.End.Equals(b.End))
{
return true;
}
@@ -85,7 +85,7 @@
#region IEquatable
public bool Equals(ZTRectangle other)
{
- if (this.Start == other.Start && this.End == other.End)
+ if (this.Start.Equals(other.Start) && this.End.Equals(other.End))
{
return true;
}
--
Gitblit v1.9.3