Salome HOME
Minor modification concerning the entities remove.
[modules/shaper.git] / src / SketchSolver / SketchSolver_Storage.cpp
index fed8d3e82d2cb6c5860a2567c4ae73649f434b23..739de6f95641f5c045de8f16955ede5fcb40b931 100644 (file)
@@ -346,7 +346,7 @@ bool SketchSolver_Storage::removeEntity(FeaturePtr theFeature)
 {
   std::map<FeaturePtr, EntityWrapperPtr>::iterator aFound = myFeatureMap.find(theFeature);
   if (aFound == myFeatureMap.end())
-    return false; // feature not found, nothing to delete
+    return true; // feature not found, nothing to delete
 
   EntityWrapperPtr anEntity = aFound->second;
   myFeatureMap.erase(aFound);
@@ -365,7 +365,7 @@ bool SketchSolver_Storage::removeEntity(AttributePtr theAttribute)
 {
   std::map<AttributePtr, EntityWrapperPtr>::iterator aFound = myAttributeMap.find(theAttribute);
   if (aFound == myAttributeMap.end())
-    return false; // attribute not found, nothing to delete
+    return true; // attribute not found, nothing to delete
 
   EntityWrapperPtr anEntity = aFound->second;
   myAttributeMap.erase(aFound);