]> SALOME platform Git repositories - modules/shaper.git/blobdiff - src/Model/Model_ResultConstruction.cpp
Salome HOME
Fix for crash and invisible bodies on Debian Squeeze SALOME version.
[modules/shaper.git] / src / Model / Model_ResultConstruction.cpp
index 8d230ab37c13f2881717dced37421cfd825fbe6c..749c90211d92a0cefec5a5cf75d78df8e231a478 100644 (file)
@@ -9,17 +9,18 @@ void Model_ResultConstruction::setShape(boost::shared_ptr<GeomAPI_Shape> theShap
   myShape = theShape;
 }
 
-boost::shared_ptr<GeomAPI_Shape>& Model_ResultConstruction::shape()
+boost::shared_ptr<GeomAPI_Shape> Model_ResultConstruction::shape()
 {
   return myShape;
 }
 
-/*
-boost::shared_ptr<ModelAPI_Feature> Model_ResultConstruction::owner()
+Model_ResultConstruction::Model_ResultConstruction()
 {
-  return myOwner;
-}*/
+  myIsInHistory = true;
+  setIsConcealed(false);
+}
 
-Model_ResultConstruction::Model_ResultConstruction()
+void Model_ResultConstruction::setIsInHistory(const bool isInHistory)
 {
+  myIsInHistory = isInHistory;
 }