]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Issue 2229: additional fix for the interactive creation of the constraint.
authormpv <mpv@opencascade.com>
Wed, 23 Aug 2017 13:41:39 +0000 (16:41 +0300)
committermpv <mpv@opencascade.com>
Wed, 23 Aug 2017 13:41:39 +0000 (16:41 +0300)
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;
         }
       }