Salome HOME
Bug PAL8221 - POST-PRO: Pal/Salome crashes if edit presentation in opened study
[modules/visu.git] / src / VISU_I / VISU_CutPlanes_i.cc
index a18f32f3cf0402fd4b1f9fa48a98d4e10bbf0145..b0dca7d0340edd9ddbc094c9e280f965eb439483 100644 (file)
@@ -53,12 +53,25 @@ const string VISU::CutPlanes_i::myComment = "CUTPLANES";
 const char* VISU::CutPlanes_i::GetComment() const { return myComment.c_str();}
 
 
-VISU::CutPlanes_i::CutPlanes_i(Result_i* theResult, bool theAddToStudy, SALOMEDS::SObject_ptr theSObject) :
-       PrsObject_i(theResult->GetStudyDocument()), 
-       Prs3d_i(theResult,theSObject),
-       ScalarMap_i(theResult,theAddToStudy,theSObject)
+VISU::CutPlanes_i::
+CutPlanes_i(Result_i* theResult, 
+           bool theAddToStudy) :
+  PrsObject_i(theResult->GetStudyDocument()), 
+  Prs3d_i(theResult,theAddToStudy),
+  ScalarMap_i(theResult,theAddToStudy),
+  myCutPlanesPL(NULL)
+{
+}
+
+
+VISU::CutPlanes_i::
+CutPlanes_i(Result_i* theResult, 
+           SALOMEDS::SObject_ptr theSObject) :
+  PrsObject_i(theResult->GetStudyDocument()), 
+  Prs3d_i(theResult,theSObject),
+  ScalarMap_i(theResult,theSObject),
+  myCutPlanesPL(NULL)
 {
-  myCutPlanesPL = NULL;
 }