From b6b4ab03f134c7aa90af631ca1ae56daef6186ba Mon Sep 17 00:00:00 2001 From: nds Date: Wed, 24 Jan 2018 07:04:05 +0300 Subject: [PATCH] Issue #2411 Fatal error for filling --- src/ModuleBase/ModuleBase_WidgetMultiSelector.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); -- 2.30.2