Salome HOME
Fix of crash in issue #416
[modules/shaper.git] / src / Model / Model_ResultConstruction.cpp
index 0b6d56612c64ffd89b2e735e8f45f67788a29f97..aaade70ff23d3364b2fb930b5c1bc61081d5eac2 100644 (file)
@@ -1,15 +1,17 @@
+// Copyright (C) 2014-20xx CEA/DEN, EDF R&D
+
 // File:        ModelAPI_ResultConstruction.cpp
 // Created:     07 Jul 2014
 // Author:      Mikhail PONIKAROV
 
 #include <Model_ResultConstruction.h>
 
-void Model_ResultConstruction::setShape(boost::shared_ptr<GeomAPI_Shape> theShape)
+void Model_ResultConstruction::setShape(std::shared_ptr<GeomAPI_Shape> theShape)
 {
   myShape = theShape;
 }
 
-boost::shared_ptr<GeomAPI_Shape>& Model_ResultConstruction::shape()
+std::shared_ptr<GeomAPI_Shape> Model_ResultConstruction::shape()
 {
   return myShape;
 }
@@ -17,6 +19,7 @@ boost::shared_ptr<GeomAPI_Shape>& Model_ResultConstruction::shape()
 Model_ResultConstruction::Model_ResultConstruction()
 {
   myIsInHistory = true;
+  setIsConcealed(false);
 }
 
 void Model_ResultConstruction::setIsInHistory(const bool isInHistory)