From: nds Date: Wed, 24 Jan 2018 04:04:05 +0000 (+0300) Subject: Issue #2411 Fatal error for filling X-Git-Tag: V_3.0.0RC1~12 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=b6b4ab03f134c7aa90af631ca1ae56daef6186ba;p=modules%2Fshaper.git Issue #2411 Fatal error for filling --- diff --git a/src/ModuleBase/ModuleBase_WidgetMultiSelector.cpp b/src/ModuleBase/ModuleBase_WidgetMultiSelector.cpp index 55eaf59eb..6336f5f3e 100755 --- a/src/ModuleBase/ModuleBase_WidgetMultiSelector.cpp +++ b/src/ModuleBase/ModuleBase_WidgetMultiSelector.cpp @@ -948,7 +948,7 @@ bool ModuleBase_WidgetMultiSelector::findInSelection(const ObjectPtr& theObject, } // issue #2903: (Possibility to hide faces) - check whether given shape is a hidden sub-shape - if (!aFound && theWorkshop->hasSHIFTPressed() && theObject->isDisplayed()) { + if (!aFound && theShape.get() && theWorkshop->hasSHIFTPressed() && theObject->isDisplayed()) { AISObjectPtr anAIS = theWorkshop->findPresentation(theObject); if (anAIS.get() != NULL) { Handle(AIS_InteractiveObject) anAISIO = anAIS->impl();