From 8f212835d9115577fe8b21e33e42a2c77fd073bd Mon Sep 17 00:00:00 2001 From: azv Date: Thu, 24 Dec 2015 09:29:35 +0300 Subject: [PATCH] Minor modification concerning the entities remove. --- src/SketchSolver/SketchSolver_Storage.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); -- 2.39.2