]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Fix crash in SketchAPI loading.
authorazv <azv@opencascade.com>
Thu, 6 Jun 2019 12:27:47 +0000 (15:27 +0300)
committerazv <azv@opencascade.com>
Thu, 6 Jun 2019 12:27:47 +0000 (15:27 +0300)
src/SketchAPI/SketchAPI_Sketch.cpp

index 7476380df64883cc5312f9ef257df8d527045890..14ebf7f4c34cf549b20364e2cd3518b73d295b07 100644 (file)
@@ -130,8 +130,7 @@ void SketchAPI_Sketch::setPlane(const std::shared_ptr<GeomAPI_Ax3> & thePlane)
 void SketchAPI_Sketch::setPlane(const ModelHighAPI_Selection & thePlane,
                                 bool theRemoveExternalDependency)
 {
-  std::shared_ptr<SketchPlugin_Sketch> aSketch =
-      std::dynamic_pointer_cast<SketchPlugin_Sketch>(feature());
+  FeaturePtr aSketch = feature();
 
   DocumentPtr aDoc = aSketch->document();
   bool useVisible = false;