diff --git a/doc/user/docs/release_notes.md b/doc/user/docs/release_notes.md index f0e04aeea..c4beab959 100644 --- a/doc/user/docs/release_notes.md +++ b/doc/user/docs/release_notes.md @@ -4,6 +4,11 @@ ### Bug Fixes - When creating a synthetic from the Market View window, securities are now added to the Create Synthetic dialog in the same sort order as they appear in grid +## 1.4.2 + +### Bug Fixes + - Shell no longer crashes when removing a security from the synthetics window + ## 1.4.1 ### Tabs diff --git a/src/client/spark/Orders/OrderRecordTupleSource.cs b/src/client/spark/Orders/OrderRecordTupleSource.cs index 51ffa7f78..0c8aeaccf 100644 --- a/src/client/spark/Orders/OrderRecordTupleSource.cs +++ b/src/client/spark/Orders/OrderRecordTupleSource.cs @@ -95,7 +95,7 @@ namespace mbts.spark { /// Warning: must NOT be reassigned with ; the latter is always the same object. /// This would mean that the /// call above would literally be calculating the difference between the keys of the same dictionary! - foreach (var k in removed_keys) { + foreach (var k in removed_keys.ToList()) { if (_security_orders.try_lookup(k, out ISet order_keys)) { SecurityMD old_sec_md = _security_md_cache[k]; removed_securities.Add(k, old_sec_md); @@ -109,7 +109,7 @@ namespace mbts.spark { } _security_md_cache.Remove(k); } - foreach (var k in added_keys) { + foreach (var k in added_keys.ToList()) { SecurityMD new_sec_md = securities[k]; if (_security_orders.try_lookup(k, out ISet order_keys)) { added_securities.Add(k, new_sec_md);