Index: Ringtoets/Common/src/Ringtoets.Common.Forms/Views/GeneralResultFaultTreeIllustrationPointView.cs =================================================================== diff -u -r2e944cbf52d124fd501ed4ed8e991aa50299cc69 -r68ad4c0477e2ae7f325fef005b88d5be5c563840 --- Ringtoets/Common/src/Ringtoets.Common.Forms/Views/GeneralResultFaultTreeIllustrationPointView.cs (.../GeneralResultFaultTreeIllustrationPointView.cs) (revision 2e944cbf52d124fd501ed4ed8e991aa50299cc69) +++ Ringtoets/Common/src/Ringtoets.Common.Forms/Views/GeneralResultFaultTreeIllustrationPointView.cs (.../GeneralResultFaultTreeIllustrationPointView.cs) (revision 68ad4c0477e2ae7f325fef005b88d5be5c563840) @@ -127,14 +127,26 @@ return; } - bool areClosingSituationsSame = generalResult.TopLevelIllustrationPoints - .HasDuplicates(p => p.ClosingSituation); + string closingSituation = generalResult.TopLevelIllustrationPoints.HasDuplicates(p => p.ClosingSituation) + ? string.Empty + : topLevelFaultTreeIllustrationPoint.ClosingSituation; - Selection = new IllustrationPointNodeContext(selection, - topLevelFaultTreeIllustrationPoint.WindDirection.Name, - areClosingSituationsSame - ? string.Empty - : topLevelFaultTreeIllustrationPoint.ClosingSituation); + var faultTreeIllustrationPoint = selection.Data as FaultTreeIllustrationPoint; + if (faultTreeIllustrationPoint != null) + { + Selection = new IllustrationPointContext(faultTreeIllustrationPoint, + selection, + topLevelFaultTreeIllustrationPoint.WindDirection.Name, + closingSituation); + } + var subMechanismIllustrationPoint = selection.Data as SubMechanismIllustrationPoint; + if (subMechanismIllustrationPoint != null) + { + Selection = new IllustrationPointContext(subMechanismIllustrationPoint, + selection, + topLevelFaultTreeIllustrationPoint.WindDirection.Name, + closingSituation); + } OnSelectionChanged(); }