Salome HOME
projects
/
modules
/
shaper.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7243ff1
)
Fix crash in SketchAPI loading.
author
azv
<azv@opencascade.com>
Thu, 6 Jun 2019 12:27:47 +0000
(15:27 +0300)
committer
azv
<azv@opencascade.com>
Thu, 6 Jun 2019 12:27:47 +0000
(15:27 +0300)
src/SketchAPI/SketchAPI_Sketch.cpp
patch
|
blob
|
history
diff --git
a/src/SketchAPI/SketchAPI_Sketch.cpp
b/src/SketchAPI/SketchAPI_Sketch.cpp
index 7476380df64883cc5312f9ef257df8d527045890..14ebf7f4c34cf549b20364e2cd3518b73d295b07 100644
(file)
--- a/
src/SketchAPI/SketchAPI_Sketch.cpp
+++ b/
src/SketchAPI/SketchAPI_Sketch.cpp
@@
-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;