From 454330e360f46a4ffa7cd5d3f9fc7d4b498781f2 Mon Sep 17 00:00:00 2001 From: John Colvin Date: Fri, 21 Feb 2020 18:51:37 -0600 Subject: [PATCH] fix typo in DiscretePropertyChangedDetector constructor (don't trim the whole array) --- src/client/spark/core/Utility/ObjectSnapshot.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client/spark/core/Utility/ObjectSnapshot.cs b/src/client/spark/core/Utility/ObjectSnapshot.cs index 9beec7c87..7e991d4ff 100644 --- a/src/client/spark/core/Utility/ObjectSnapshot.cs +++ b/src/client/spark/core/Utility/ObjectSnapshot.cs @@ -258,7 +258,7 @@ namespace bts.utils { _property_monitors[pm_pos++] = (pad.prop_info.Name, initialize, refresh); } } - ArrayHelper.trim(ref _property_monitors, _property_monitors.Length - pm_pos); + ArrayHelper.trim(ref _property_monitors, pm_pos); } public IDisposable detect_changes(T target) {