Salome HOME
Boolean operations created
[modules/shaper.git] / src / ModuleBase / ModuleBase_WidgetFeature.cpp
index dd8fb94939dd3f49750f586aafa3c0858f6ca224..08cb49f0001123a533f76da9c1c388fed6ba32ac 100644 (file)
@@ -117,8 +117,9 @@ bool ModuleBase_WidgetFeature::setObject(const ObjectPtr& theObject, bool theSen
 bool ModuleBase_WidgetFeature::storeValue() const
 {
   //FeaturePtr aFeature = boost::dynamic_pointer_cast<ModelAPI_Feature>(theObject);
-  //if (!aFeature)
-  //  return false;
+  if (!myObject)
+    return false;
+
   boost::shared_ptr<ModelAPI_Data> aData = myFeature->data();
   boost::shared_ptr<ModelAPI_AttributeRefAttr> aRef = boost::dynamic_pointer_cast<
       ModelAPI_AttributeRefAttr>(aData->attribute(attributeID()));