From: jfa Date: Wed, 26 Oct 2005 10:03:26 +0000 (+0000) Subject: PAL10399: Possible problems with saving data of Python modules X-Git-Tag: V2_2_6~7 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=06c15730541e11801e990d841f66b7b728e7ec29;p=modules%2Fkernel.git PAL10399: Possible problems with saving data of Python modules --- diff --git a/src/SALOMEDS/SALOMEDS_StudyManager_i.cxx b/src/SALOMEDS/SALOMEDS_StudyManager_i.cxx index 29d0ca4b6..daab18900 100644 --- a/src/SALOMEDS/SALOMEDS_StudyManager_i.cxx +++ b/src/SALOMEDS/SALOMEDS_StudyManager_i.cxx @@ -730,12 +730,12 @@ void SALOMEDS_StudyManager_i::_SaveAs(const char* aUrl, Engines::Component_var aComp = SALOME_LifeCycleCORBA(&_name_service).FindOrLoad_Component(aFactoryType, aCompType); - + if(aComp->_is_nil()){ - Engines::Component_var aComp = - SALOME_LifeCycleCORBA(&_name_service).FindOrLoad_Component("FactoryServerPy", aCompType); + aComp = + SALOME_LifeCycleCORBA(&_name_service).FindOrLoad_Component("FactoryServerPy", aCompType); } - + if(!aComp->_is_nil()){ SALOMEDS::Driver_var aDriver = SALOMEDS::Driver::_narrow(aComp); if (!CORBA::is_nil(aDriver)) {