Skip to content

Commit

Permalink
When constructing an OlePropertiesContainer, use the PropertyContext …
Browse files Browse the repository at this point in the history
…from the PropertySetStream directly instead of cloning it.
  • Loading branch information
Numpsy authored and jeremy-visionaid committed Dec 8, 2024
1 parent d61e97a commit 8bdbe18
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions OpenMcdf.Ole/OlePropertiesContainer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,7 @@ public OlePropertiesContainer(CfbStream cfStream)
PropertyNames = (Dictionary<uint, string>?)pStream.PropertySet0!.Properties
.FirstOrDefault(p => p.PropertyType == PropertyType.DictionaryProperty)?.Value;

Context = new PropertyContext()
{
CodePage = pStream.PropertySet0.PropertyContext.CodePage,
Locale = pStream.PropertySet0.PropertyContext.Locale
};
Context = pStream.PropertySet0.PropertyContext;

for (int i = 0; i < pStream.PropertySet0.Properties.Count; i++)
{
Expand Down

0 comments on commit 8bdbe18

Please sign in to comment.