Skip to content

Commit

Permalink
Avoid key collision during shared VOption merge (#228)
Browse files Browse the repository at this point in the history
The set accessor of the `VOption` indexer property was incorrectly implemented.
  • Loading branch information
kleisauke committed Mar 9, 2024
1 parent 125af80 commit 7b723e3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ All notable changes to NetVips will be documented in this file. See [here](CHANG

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [2.4.1] - ???
### Fixed
- Avoid key collision during shared `VOption` merge.

## [2.4.0] - 2023-11-12
### Changed
- Update methods/enums for libvips 8.15.
Expand Down Expand Up @@ -219,6 +223,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
### Added
- First release!

[2.4.1]: https://github.com/kleisauke/net-vips/compare/v2.4.0...v2.4.1
[2.4.0]: https://github.com/kleisauke/net-vips/compare/v2.3.1...v2.4.0
[2.3.1]: https://github.com/kleisauke/net-vips/compare/v2.3.0...v2.3.1
[2.3.0]: https://github.com/kleisauke/net-vips/compare/v2.2.0...v2.3.0
Expand Down
2 changes: 1 addition & 1 deletion src/NetVips/VOption.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public class VOption : IEnumerable<KeyValuePair<string, object>>
public object this[string key]
{
get => _internalDictionary[key];
set => Add(key, value);
set => _internalDictionary[key] = value;
}

/// <summary>
Expand Down

0 comments on commit 7b723e3

Please sign in to comment.