]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Center presentation validation: check interactive object on NULL
authornds <nds@opencascade.com>
Mon, 11 Dec 2017 06:46:40 +0000 (09:46 +0300)
committernds <nds@opencascade.com>
Mon, 11 Dec 2017 06:46:40 +0000 (09:46 +0300)
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);