Index: Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.Forms/Views/MacroStabilityInwardsOutputChartControl.cs =================================================================== diff -u -r01e3465b06b53d4447b01d3a9b6befe59a42a292 -r89a30d666e2e684db9d72ed16c3be18a6afad391 --- Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.Forms/Views/MacroStabilityInwardsOutputChartControl.cs (.../MacroStabilityInwardsOutputChartControl.cs) (revision 01e3465b06b53d4447b01d3a9b6befe59a42a292) +++ Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.Forms/Views/MacroStabilityInwardsOutputChartControl.cs (.../MacroStabilityInwardsOutputChartControl.cs) (revision 89a30d666e2e684db9d72ed16c3be18a6afad391) @@ -125,9 +125,12 @@ } } + /// + /// Updates the chart data and redraws elements when necessary. + /// public void UpdateChartData() { - if (data != null && data.HasOutput) + if (data?.Output != null) { SetChartData(); } @@ -137,7 +140,7 @@ } chartDataCollection.Collection.ForEachElementDo(cd => cd.NotifyObservers()); - soilProfileChartData.Collection.ForEachElementDo(cd => cd.NotifyObservers()); + soilProfileChartData.Collection.ForEachElementDo(sp => sp.NotifyObservers()); } private void SetChartDataEmpty()