]> SALOME platform Git repositories - modules/shaper.git/blobdiff - src/SketchSolver/SketchSolver_Manager.cpp
Salome HOME
Issue 2229: additional fix for the interactive creation of the constraint.
[modules/shaper.git] / src / SketchSolver / SketchSolver_Manager.cpp
index b2a3d49d93341a4415a4242159936af7824e8ff5..70161208fb1c1333f59889e5c1f7622ddcb46127 100644 (file)
@@ -129,7 +129,7 @@ void SketchSolver_Manager::processEvent(
       for (aFeatIter = aFeatures.begin(); aFeatIter != aFeatures.end(); aFeatIter++) {
         std::shared_ptr<SketchPlugin_Feature> aFeature =
             std::dynamic_pointer_cast<SketchPlugin_Feature>(*aFeatIter);
-        if (aFeature && !aFeature->isMacro() && aFeature->data()) {
+        if (aFeature && !aFeature->isMacro() && aFeature->data() && aFeature->data()->isValid()) {
           anOrderedFeatures[aFeature->data()->featureId()] = aFeature;
         }
       }