Index: src/Deltares.DSoilModel.Forms/DSoilModelMapEditor.cs =================================================================== diff -u -r101 -r104 --- src/Deltares.DSoilModel.Forms/DSoilModelMapEditor.cs (.../DSoilModelMapEditor.cs) (revision 101) +++ src/Deltares.DSoilModel.Forms/DSoilModelMapEditor.cs (.../DSoilModelMapEditor.cs) (revision 104) @@ -9,6 +9,7 @@ using Deltares.Geometry; using Deltares.Geotechnics; using Deltares.Geotechnics.ConePenetrationTest; +using Deltares.Geotechnics.Mechanisms; using Deltares.Standard; using Deltares.Standard.EventPublisher; using Deltares.Standard.Extensions; @@ -234,7 +235,7 @@ if (property == this.GetMemberName(x => x.LinkToNearestSegment())) { // segments present and at least one CPT or boring must be selected - if (project != null && project.SoilSegments.Count > 0 && mapEditor.SelectedObjects != null && mapEditor.SelectedObjects.Count > 0) + if (project != null && project.CurrentSoilSegments.Count > 0 && mapEditor.SelectedObjects != null && mapEditor.SelectedObjects.Count > 0) { if (mapEditor.SelectedObjects.Any(o => o is ConePenetrationTestData || o is Boring)) {