]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
Debug PHASE_17_BR PHASE_17_Part1_V4
authorouv <ouv@opencascade.com>
Tue, 22 Dec 2009 13:32:22 +0000 (13:32 +0000)
committerouv <ouv@opencascade.com>
Tue, 22 Dec 2009 13:32:22 +0000 (13:32 +0000)
src/Notebook/SALOME_Notebook.cxx
src/Notebook/SALOME_ParameterizedObject.cxx

index fa822181f4f5f3e38747416c9e1d1886bdd55ed6..2c32e0eb254db20cb02743f434343852b1b8fc95 100644 (file)
@@ -1199,7 +1199,7 @@ SALOME::StringArray* SALOME_Notebook::GetAttributeParameters( const char* theStr
 
 SALOMEDS::Study_ptr SALOME_Notebook::GetStudy()
 {
-  return myStudy.in();
+  return SALOMEDS::Study::_duplicate( myStudy );
 }
 
 int SALOME_Notebook::GetNewId()
index d97476c08ef4268248275f00cb10bd3d91106405..9df39259edca8df87ee96befb4c1225386d2e5e6 100644 (file)
@@ -47,5 +47,5 @@ void SALOME_ParameterizedObject::SetNotebook( SALOME::Notebook_ptr theNotebook )
 
 SALOME::Notebook_ptr SALOME_ParameterizedObject::GetNotebook()
 {
-  return myNotebook.in();
+  return SALOME::Notebook::_duplicate( myNotebook );
 }