From 4ddcd816f2d630336091443ff98892ea74fe9273 Mon Sep 17 00:00:00 2001 From: James Jackson-South Date: Tue, 16 May 2017 12:00:23 +1000 Subject: [PATCH] Fix equality operators. --- src/ImageSharp/MetaData/Profiles/ICC/IccTagDataEntry.cs | 3 ++- .../MetaData/Profiles/ICC/Various/IccTagTableEntry.cs | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/ImageSharp/MetaData/Profiles/ICC/IccTagDataEntry.cs b/src/ImageSharp/MetaData/Profiles/ICC/IccTagDataEntry.cs index 753eb894b6..94529b9293 100644 --- a/src/ImageSharp/MetaData/Profiles/ICC/IccTagDataEntry.cs +++ b/src/ImageSharp/MetaData/Profiles/ICC/IccTagDataEntry.cs @@ -56,7 +56,8 @@ namespace ImageSharp return true; } - return this.Signature == other.Signature; + return this.Signature == other.Signature + && this.TagSignature == other.TagSignature; } } } diff --git a/src/ImageSharp/MetaData/Profiles/ICC/Various/IccTagTableEntry.cs b/src/ImageSharp/MetaData/Profiles/ICC/Various/IccTagTableEntry.cs index eb7f0c63ba..7937569991 100644 --- a/src/ImageSharp/MetaData/Profiles/ICC/Various/IccTagTableEntry.cs +++ b/src/ImageSharp/MetaData/Profiles/ICC/Various/IccTagTableEntry.cs @@ -73,7 +73,7 @@ namespace ImageSharp /// public override bool Equals(object other) { - return (other is IccProfileId) && this.Equals((IccProfileId)other); + return (other is IccTagTableEntry) && this.Equals((IccTagTableEntry)other); } ///