Salome HOME
Add tutorial help page.
[modules/shaper.git] / src / PartSet / PartSet_WidgetMultiSelector.cpp
index b552e9376f82709b4d0b9ab4f72fb4b76f8e410b..60d3d4a82baeadff22ad8ab7cfdbfdb9c301463e 100755 (executable)
@@ -63,7 +63,8 @@ PartSet_WidgetMultiSelector::~PartSet_WidgetMultiSelector()
 bool PartSet_WidgetMultiSelector::isValidSelectionCustom(const ModuleBase_ViewerPrsPtr& thePrs)
 {
   bool aValid = false;
-  if (thePrs.get() && thePrs->interactive()->IsKind(STANDARD_TYPE(PartSet_CenterPrs)))
+  if (thePrs.get() && thePrs->interactive().get() &&
+      thePrs->interactive()->IsKind(STANDARD_TYPE(PartSet_CenterPrs)))
     aValid = true; // we should not check acceptSubShape for such presentation
   else
     aValid = ModuleBase_WidgetMultiSelector::isValidSelectionCustom(thePrs);