|
|
|
@ -64,14 +64,9 @@ namespace SixLabors.ImageSharp.MetaData.Profiles.Exif |
|
|
|
this.thumbnailLength = other.thumbnailLength; |
|
|
|
this.thumbnailOffset = other.thumbnailOffset; |
|
|
|
|
|
|
|
if (other.InvalidTags.Count > 0) |
|
|
|
{ |
|
|
|
this.InvalidTags = new List<ExifTag>(other.InvalidTags); |
|
|
|
} |
|
|
|
else |
|
|
|
{ |
|
|
|
this.InvalidTags = Array.Empty<ExifTag>(); |
|
|
|
} |
|
|
|
this.InvalidTags = other.InvalidTags.Count > 0 |
|
|
|
? new List<ExifTag>(other.InvalidTags) |
|
|
|
: (IReadOnlyList<ExifTag>)Array.Empty<ExifTag>(); |
|
|
|
|
|
|
|
if (other.values != null) |
|
|
|
{ |
|
|
|
@ -298,14 +293,9 @@ namespace SixLabors.ImageSharp.MetaData.Profiles.Exif |
|
|
|
|
|
|
|
this.values = reader.ReadValues(); |
|
|
|
|
|
|
|
if (reader.InvalidTags.Count > 0) |
|
|
|
{ |
|
|
|
this.InvalidTags = new List<ExifTag>(reader.InvalidTags); |
|
|
|
} |
|
|
|
else |
|
|
|
{ |
|
|
|
this.InvalidTags = Array.Empty<ExifTag>(); |
|
|
|
} |
|
|
|
this.InvalidTags = reader.InvalidTags.Count > 0 |
|
|
|
? new List<ExifTag>(reader.InvalidTags) |
|
|
|
: (IReadOnlyList<ExifTag>)Array.Empty<ExifTag>(); |
|
|
|
|
|
|
|
this.thumbnailOffset = (int)reader.ThumbnailOffset; |
|
|
|
this.thumbnailLength = (int)reader.ThumbnailLength; |
|
|
|
|