From: nds Date: Mon, 11 Dec 2017 06:46:40 +0000 (+0300) Subject: Center presentation validation: check interactive object on NULL X-Git-Tag: V_2.10.0RC~63 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=4c267a52f180b3702b45642314545356805cd428;p=modules%2Fshaper.git Center presentation validation: check interactive object on NULL --- diff --git a/src/PartSet/PartSet_WidgetMultiSelector.cpp b/src/PartSet/PartSet_WidgetMultiSelector.cpp index b552e9376..60d3d4a82 100755 --- a/src/PartSet/PartSet_WidgetMultiSelector.cpp +++ b/src/PartSet/PartSet_WidgetMultiSelector.cpp @@ -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);