]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
Fix observers bug: study tree stops updating after Dump Python operation
authorvsr <vsr@opencascade.com>
Wed, 26 Jan 2011 09:38:56 +0000 (09:38 +0000)
committervsr <vsr@opencascade.com>
Wed, 26 Jan 2011 09:38:56 +0000 (09:38 +0000)
src/SALOMEDS/SALOMEDS_Driver_i.cxx

index ed75abfc61a6151f1ff90ecfed64e99af2de0604..15c5b770fecee7e810dcd855769a15295639d4f2 100644 (file)
@@ -217,7 +217,7 @@ SALOMEDSImpl_TMPFile* SALOMEDS_Driver_i::DumpPython(SALOMEDSImpl_Study* theStudy
                                                     bool& isValidScript,
                                                     long& theStreamLength)
 {
-  SALOMEDS_Study_i *  st_servant = new SALOMEDS_Study_i (theStudy, _orb);
+  SALOMEDS_Study_i *  st_servant = SALOMEDS_Study_i::GetStudyServant(theStudy, _orb);//new SALOMEDS_Study_i (theStudy, _orb);
   SALOMEDS::Study_var st  = SALOMEDS::Study::_narrow(st_servant->_this());
   Engines::Component_ptr aComponent = Engines::Component::_narrow(_driver);