From e721d02240140b5dd9d94d8507484886122cabd9 Mon Sep 17 00:00:00 2001 From: vsr Date: Wed, 26 Jan 2011 09:38:56 +0000 Subject: [PATCH] Fix observers bug: study tree stops updating after Dump Python operation --- src/SALOMEDS/SALOMEDS_Driver_i.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.39.2