]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Issue #2411 Fatal error for filling
authornds <nds@opencascade.com>
Wed, 24 Jan 2018 04:04:05 +0000 (07:04 +0300)
committernds <nds@opencascade.com>
Wed, 24 Jan 2018 04:04:05 +0000 (07:04 +0300)
src/ModuleBase/ModuleBase_WidgetMultiSelector.cpp

index 55eaf59eb0c4d80b801ffa34f05a53111d869bed..6336f5f3e672b725dcb2ee8a3b372e221fec2271 100755 (executable)
@@ -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<Handle(AIS_InteractiveObject)>();