Index: DamClients/DamUI/trunk/src/DamClientsLibrary/Deltares.Dam.Data/DamEngineIo/FillXmlInputFromDamUi.cs =================================================================== diff -u -r6284 -r6285 --- DamClients/DamUI/trunk/src/DamClientsLibrary/Deltares.Dam.Data/DamEngineIo/FillXmlInputFromDamUi.cs (.../FillXmlInputFromDamUi.cs) (revision 6284) +++ DamClients/DamUI/trunk/src/DamClientsLibrary/Deltares.Dam.Data/DamEngineIo/FillXmlInputFromDamUi.cs (.../FillXmlInputFromDamUi.cs) (revision 6285) @@ -160,10 +160,9 @@ var usedSoilProfiles1D = new List(); foreach (Segment segment in segments) { - foreach (SoilGeometryProbability soilProfileProbability in segment.SoilProfileProbabilities) + foreach (SoilGeometryProbability soilProfileProbability in segment.SoilProfileProbabilities.Where(spp => spp.SoilProfileType == SoilProfileType.SoilProfile1D)) { - if (!usedSoilProfiles1D.Any(usp => usp.Name.Equals(soilProfileProbability.SoilProfile.Name) - && soilProfileProbability.SoilProfileType == SoilProfileType.SoilProfile1D)) + if (!usedSoilProfiles1D.Any(usp => usp.Name.Equals(soilProfileProbability.SoilProfile.Name))) { usedSoilProfiles1D.Add(soilProfileProbability.SoilProfile); }