Browse Source

Update IccReader.cs

pull/1567/head
James Jackson-South 3 years ago
parent
commit
3e06687f53
  1. 3
      src/ImageSharp/Metadata/Profiles/ICC/IccReader.cs

3
src/ImageSharp/Metadata/Profiles/ICC/IccReader.cs

@ -83,6 +83,7 @@ internal sealed class IccReader
{ {
IccTagTableEntry[] tagTable = ReadTagTable(reader); IccTagTableEntry[] tagTable = ReadTagTable(reader);
List<IccTagDataEntry> entries = new(tagTable.Length); List<IccTagDataEntry> entries = new(tagTable.Length);
Dictionary<uint, IccTagDataEntry> store = new();
foreach (IccTagTableEntry tag in tagTable) foreach (IccTagTableEntry tag in tagTable)
{ {
@ -102,6 +103,8 @@ internal sealed class IccReader
// Ignore tags that could not be read // Ignore tags that could not be read
continue; continue;
} }
store.Add(tag.Offset, entry);
} }
entry.TagSignature = tag.Signature; entry.TagSignature = tag.Signature;

Loading…
Cancel
Save