From: azv Date: Thu, 24 Dec 2015 06:29:35 +0000 (+0300) Subject: Minor modification concerning the entities remove. X-Git-Tag: V_2.1.0~88^2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=8f212835d9115577fe8b21e33e42a2c77fd073bd;p=modules%2Fshaper.git Minor modification concerning the entities remove. --- diff --git a/src/SketchSolver/SketchSolver_Storage.cpp b/src/SketchSolver/SketchSolver_Storage.cpp index fed8d3e82..739de6f95 100644 --- a/src/SketchSolver/SketchSolver_Storage.cpp +++ b/src/SketchSolver/SketchSolver_Storage.cpp @@ -346,7 +346,7 @@ bool SketchSolver_Storage::removeEntity(FeaturePtr theFeature) { std::map::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::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);