Salome HOME
#1581 crash when create fillet
[modules/shaper.git] / src / PartSet / PartSet_WidgetMultiSelector.cpp
index e8695bf2172b8a614ed39739443c2b7d293f6dcb..31006f8927908c96808985396ccafcdff533ab6a 100755 (executable)
@@ -74,7 +74,9 @@ void PartSet_WidgetMultiSelector::getGeomSelection(const ModuleBase_ViewerPrsPtr
           std::dynamic_pointer_cast<SketchPlugin_Feature>(aSelectedFeature);
   // there is no a sketch feature is selected, but the shape exists, try to create an exernal object
   // TODO: unite with the same functionality in PartSet_WidgetShapeSelector
-  if (aSPFeature.get() == NULL && myExternalObjectMgr->useExternal()) {
+  if (aSPFeature.get() == NULL)
+    theObject = NULL;
+  if (myExternalObjectMgr->useExternal()) {
     GeomShapePtr aShape = theShape;
     if (!aShape.get()) {
       ResultPtr aResult = myWorkshop->selection()->getResult(thePrs);