From: vsr Date: Wed, 26 Jan 2011 09:38:56 +0000 (+0000) Subject: Fix observers bug: study tree stops updating after Dump Python operation X-Git-Tag: Start_BR_19998_21191~88 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=e721d02240140b5dd9d94d8507484886122cabd9;p=modules%2Fkernel.git Fix observers bug: study tree stops updating after Dump Python operation --- diff --git a/src/SALOMEDS/SALOMEDS_Driver_i.cxx b/src/SALOMEDS/SALOMEDS_Driver_i.cxx index ed75abfc6..15c5b770f 100644 --- a/src/SALOMEDS/SALOMEDS_Driver_i.cxx +++ b/src/SALOMEDS/SALOMEDS_Driver_i.cxx @@ -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);