Skip to content

Commit

Permalink
Update IccReader.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
JimBobSquarePants committed Nov 1, 2023
1 parent a567613 commit 3e06687
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/ImageSharp/Metadata/Profiles/ICC/IccReader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ private static IccTagDataEntry[] ReadTagData(IccDataReader reader)
{
IccTagTableEntry[] tagTable = ReadTagTable(reader);
List<IccTagDataEntry> entries = new(tagTable.Length);
Dictionary<uint, IccTagDataEntry> store = new();

foreach (IccTagTableEntry tag in tagTable)
{
Expand All @@ -102,6 +103,8 @@ private static IccTagDataEntry[] ReadTagData(IccDataReader reader)
// Ignore tags that could not be read
continue;
}

store.Add(tag.Offset, entry);
}

entry.TagSignature = tag.Signature;
Expand Down

0 comments on commit 3e06687

Please sign in to comment.