]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Fix crash while loading PlaneGCS connection plugin.
authorazv <azv@opencascade.com>
Thu, 6 Jun 2019 11:28:40 +0000 (14:28 +0300)
committerazv <azv@opencascade.com>
Thu, 6 Jun 2019 11:28:40 +0000 (14:28 +0300)
src/SketchSolver/SketchSolver_Manager.cpp

index b4c6765d5c391f082e6882cb6295e22c1beffd82..00be4b13ef380f8f4151421c488062db0d608331 100644 (file)
@@ -79,9 +79,9 @@ static void featuresOrderedByType(const std::set<ObjectPtr>& theOriginalFeatures
       }
     }
     else {
-      std::shared_ptr<SketchPlugin_Sketch> aSketch =
-          std::dynamic_pointer_cast<SketchPlugin_Sketch>(*aFeatIter);
-      if (aSketch)
+      CompositeFeaturePtr aSketch =
+          std::dynamic_pointer_cast<ModelAPI_CompositeFeature>(*aFeatIter);
+      if (aSketch && aSketch->getKind() == SketchPlugin_Sketch::ID())
         theSketch = aSketch;
     }
   }