Index: Ringtoets/Piping/src/Ringtoets.Piping.Forms/Views/PipingChartDataFactory.cs =================================================================== diff -u -r848c3a050bda5fb0dd74232deb7f1d5eba8ecbf6 -r78053965aab36c2c21e2706e73d84a9dc2cd5f3a --- Ringtoets/Piping/src/Ringtoets.Piping.Forms/Views/PipingChartDataFactory.cs (.../PipingChartDataFactory.cs) (revision 848c3a050bda5fb0dd74232deb7f1d5eba8ecbf6) +++ Ringtoets/Piping/src/Ringtoets.Piping.Forms/Views/PipingChartDataFactory.cs (.../PipingChartDataFactory.cs) (revision 78053965aab36c2c21e2706e73d84a9dc2cd5f3a) @@ -25,6 +25,7 @@ using System.Linq; using Core.Components.Charting.Data; using Core.Components.Charting.Styles; +using Ringtoets.Piping.Data; using Ringtoets.Piping.Forms.Properties; using Ringtoets.Piping.Primitives; using PipingDataResources = Ringtoets.Piping.Data.Properties.Resources; @@ -189,15 +190,20 @@ } /// - /// Updates the name of based on . + /// Updates the name of based on . /// /// The to update the name for. - /// The used for obtaining the name. - /// When is null a default name is set (). - public static void UpdateSoilProfileChartDataName(ChartDataCollection chartData, PipingSoilProfile soilProfile) + /// The used for obtaining the name. + /// A default name is set () when: + /// + /// is null; + /// the in is null. + /// + /// + public static void UpdateSoilProfileChartDataName(ChartDataCollection chartData, StochasticSoilProfile stochasticSoilProfile) { - chartData.Name = soilProfile != null - ? soilProfile.Name + chartData.Name = stochasticSoilProfile != null && stochasticSoilProfile.SoilProfile != null + ? stochasticSoilProfile.SoilProfile.Name : Resources.StochasticSoilProfileProperties_DisplayName; }