From: azv Date: Thu, 6 Jun 2019 12:27:47 +0000 (+0300) Subject: Fix crash in SketchAPI loading. X-Git-Tag: VEDF2019Lot4~114^2~5 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=5aa00c42e129fb9c3700e76b340024e50c28b8d9;p=modules%2Fshaper.git Fix crash in SketchAPI loading. --- diff --git a/src/SketchAPI/SketchAPI_Sketch.cpp b/src/SketchAPI/SketchAPI_Sketch.cpp index 7476380df..14ebf7f4c 100644 --- a/src/SketchAPI/SketchAPI_Sketch.cpp +++ b/src/SketchAPI/SketchAPI_Sketch.cpp @@ -130,8 +130,7 @@ void SketchAPI_Sketch::setPlane(const std::shared_ptr & thePlane) void SketchAPI_Sketch::setPlane(const ModelHighAPI_Selection & thePlane, bool theRemoveExternalDependency) { - std::shared_ptr aSketch = - std::dynamic_pointer_cast(feature()); + FeaturePtr aSketch = feature(); DocumentPtr aDoc = aSketch->document(); bool useVisible = false;