Browse Source

Fix equality operators.

af/merge-core
James Jackson-South 9 years ago
parent
commit
4db897f83d
  1. 3
      src/ImageSharp/MetaData/Profiles/ICC/IccTagDataEntry.cs
  2. 2
      src/ImageSharp/MetaData/Profiles/ICC/Various/IccTagTableEntry.cs

3
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;
}
}
}

2
src/ImageSharp/MetaData/Profiles/ICC/Various/IccTagTableEntry.cs

@ -73,7 +73,7 @@ namespace ImageSharp
/// <inheritdoc/>
public override bool Equals(object other)
{
return (other is IccProfileId) && this.Equals((IccProfileId)other);
return (other is IccTagTableEntry) && this.Equals((IccTagTableEntry)other);
}
/// <inheritdoc/>

Loading…
Cancel
Save