From: mpv Date: Wed, 23 Aug 2017 13:41:39 +0000 (+0300) Subject: Issue 2229: additional fix for the interactive creation of the constraint. X-Git-Tag: V_2.8.0RC~1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=665435f0512e2f26abdbe7832b90af6f560b6451;p=modules%2Fshaper.git Issue 2229: additional fix for the interactive creation of the constraint. --- diff --git a/src/SketchSolver/SketchSolver_Manager.cpp b/src/SketchSolver/SketchSolver_Manager.cpp index b2a3d49d9..70161208f 100644 --- a/src/SketchSolver/SketchSolver_Manager.cpp +++ b/src/SketchSolver/SketchSolver_Manager.cpp @@ -129,7 +129,7 @@ void SketchSolver_Manager::processEvent( for (aFeatIter = aFeatures.begin(); aFeatIter != aFeatures.end(); aFeatIter++) { std::shared_ptr aFeature = std::dynamic_pointer_cast(*aFeatIter); - if (aFeature && !aFeature->isMacro() && aFeature->data()) { + if (aFeature && !aFeature->isMacro() && aFeature->data() && aFeature->data()->isValid()) { anOrderedFeatures[aFeature->data()->featureId()] = aFeature; } }